mirror of https://github.com/microsoft/clang.git
[ASTImporter] Added test case for opaque enums
Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: a_sidorin, martong, cfe-commits Differential Revision: https://reviews.llvm.org/D50550 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5406e79caa
commit
eda3b82abb
|
@ -2,3 +2,5 @@ enum E {
|
||||||
a = 1,
|
a = 1,
|
||||||
b = 2
|
b = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum OpaqueWithType : long;
|
||||||
|
|
|
@ -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() {
|
void expr() {
|
||||||
static_assert(E::a + E::b == 3);
|
static_assert(E::a + E::b == 3);
|
||||||
|
static_assert(sizeof(OpaqueWithType) == sizeof(long));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue