summaryrefslogtreecommitdiffstats
path: root/test/Import/cxx-record-flags/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/cxx-record-flags/test.cpp')
-rw-r--r--test/Import/cxx-record-flags/test.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Import/cxx-record-flags/test.cpp b/test/Import/cxx-record-flags/test.cpp
new file mode 100644
index 0000000000..bff76274fb
--- /dev/null
+++ b/test/Import/cxx-record-flags/test.cpp
@@ -0,0 +1,14 @@
+// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
+
+// CHECK: FTrivial
+// CHECK: DefinitionData
+// CHECK-SAME: pass_in_registers
+
+// CHECK: FNonTrivial
+// CHECK-NOT: pass_in_registers
+// CHECK: DefaultConstructor
+
+void expr() {
+ FTrivial f1;
+ FNonTrivial f2;
+}