r301573 - Added an Importer test for in-class member initializers.

Sean Callanan via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 27 11:10:29 PDT 2017


Author: spyffe
Date: Thu Apr 27 13:10:29 2017
New Revision: 301573

URL: http://llvm.org/viewvc/llvm-project?rev=301573&view=rev
Log:
Added an Importer test for in-class member initializers.

Added:
    cfe/trunk/test/Import/in-class-initializer/
    cfe/trunk/test/Import/in-class-initializer/Inputs/
    cfe/trunk/test/Import/in-class-initializer/Inputs/S.cpp
    cfe/trunk/test/Import/in-class-initializer/test.cpp

Added: cfe/trunk/test/Import/in-class-initializer/Inputs/S.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/in-class-initializer/Inputs/S.cpp?rev=301573&view=auto
==============================================================================
--- cfe/trunk/test/Import/in-class-initializer/Inputs/S.cpp (added)
+++ cfe/trunk/test/Import/in-class-initializer/Inputs/S.cpp Thu Apr 27 13:10:29 2017
@@ -0,0 +1,3 @@
+struct S {
+  int a = 3;
+};

Added: cfe/trunk/test/Import/in-class-initializer/test.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/in-class-initializer/test.cpp?rev=301573&view=auto
==============================================================================
--- cfe/trunk/test/Import/in-class-initializer/test.cpp (added)
+++ cfe/trunk/test/Import/in-class-initializer/test.cpp Thu Apr 27 13:10:29 2017
@@ -0,0 +1,5 @@
+// RUN: clang-import-test -import %S/Inputs/S.cpp -expression %s
+void expr() {
+  S MyS;
+  int b = MyS.a + MyS.a;
+}




More information about the cfe-commits mailing list