[PATCH] D50550: [ASTImporter] Added test case for opaque enums
Raphael Isemann via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 11 16:44:27 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339506: [ASTImporter] Added test case for opaque enums (authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D50550?vs=160057&id=160248#toc
Repository:
rL LLVM
https://reviews.llvm.org/D50550
Files:
cfe/trunk/test/Import/enum/Inputs/S.cpp
cfe/trunk/test/Import/enum/test.cpp
Index: cfe/trunk/test/Import/enum/Inputs/S.cpp
===================================================================
--- cfe/trunk/test/Import/enum/Inputs/S.cpp
+++ cfe/trunk/test/Import/enum/Inputs/S.cpp
@@ -2,3 +2,5 @@
a = 1,
b = 2
};
+
+enum OpaqueWithType : long;
Index: cfe/trunk/test/Import/enum/test.cpp
===================================================================
--- cfe/trunk/test/Import/enum/test.cpp
+++ cfe/trunk/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));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50550.160248.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180811/acd43c12/attachment.bin>
More information about the llvm-commits
mailing list