diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
| commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
| tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /test/Import/enum | |
| parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) | |
Notes
Diffstat (limited to 'test/Import/enum')
| -rw-r--r-- | test/Import/enum/Inputs/S.cpp | 2 | ||||
| -rw-r--r-- | test/Import/enum/test.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/Import/enum/Inputs/S.cpp b/test/Import/enum/Inputs/S.cpp index 8506c68512db..3179da1daacc 100644 --- a/test/Import/enum/Inputs/S.cpp +++ b/test/Import/enum/Inputs/S.cpp @@ -2,3 +2,5 @@ enum E { a = 1, b = 2 }; + +enum OpaqueWithType : long; diff --git a/test/Import/enum/test.cpp b/test/Import/enum/test.cpp index aa68063cb207..491c3b7cb60d 100644 --- a/test/Import/enum/test.cpp +++ b/test/Import/enum/test.cpp @@ -1,4 +1,8 @@ -// RUN: clang-import-test -import %S/Inputs/S.cpp -expression %s +// RUN: clang-import-test -dump-ast -import %S/Inputs/S.cpp -expression %s | FileCheck %s + +// CHECK: OpaqueWithType 'long' + void expr() { static_assert(E::a + E::b == 3); + static_assert(sizeof(OpaqueWithType) == sizeof(long)); } |
