diff options
Diffstat (limited to 'final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp')
-rwxr-xr-x | final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp b/final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp new file mode 100755 index 00000000..41b27f51 --- /dev/null +++ b/final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp @@ -0,0 +1,18 @@ +// This file is distributed under the University of Illinois Open Source License.
+// See LICENSE.TXT for details.
+// RUN: cxx_compiler cxx_11 -c %s -o %t.o
+// RUN: bindump %t.o | FileCheck prefixes %s
+
+// CHECK: _ZN3FooUt_3barEv
+
+struct Foo {
+ struct {
+ int x;
+ void bar() {}
+ } name;
+};
+
+int main() {
+ Foo f;
+ f.name.bar();
+}
|