teemperor created this revision. Herald added a subscriber: martong. Herald added a reviewer: a.sidorin.
Repository: rC Clang https://reviews.llvm.org/D50550 Files: test/Import/enum/Inputs/S.cpp test/Import/enum/test.cpp Index: test/Import/enum/test.cpp =================================================================== --- test/Import/enum/test.cpp +++ test/Import/enum/test.cpp @@ -1,4 +1,9 @@ -// 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' +// CHECK-SANE: EnumDecl + void expr() { static_assert(E::a + E::b == 3); + static_assert(sizeof(OpaqueWithType) == sizeof(long)); } Index: test/Import/enum/Inputs/S.cpp =================================================================== --- test/Import/enum/Inputs/S.cpp +++ test/Import/enum/Inputs/S.cpp @@ -2,3 +2,5 @@ a = 1, b = 2 }; + +enum OpaqueWithType : long;
Index: test/Import/enum/test.cpp =================================================================== --- test/Import/enum/test.cpp +++ test/Import/enum/test.cpp @@ -1,4 +1,9 @@ -// 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' +// CHECK-SANE: EnumDecl + void expr() { static_assert(E::a + E::b == 3); + static_assert(sizeof(OpaqueWithType) == sizeof(long)); } Index: test/Import/enum/Inputs/S.cpp =================================================================== --- test/Import/enum/Inputs/S.cpp +++ test/Import/enum/Inputs/S.cpp @@ -2,3 +2,5 @@ a = 1, b = 2 }; + +enum OpaqueWithType : long;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits