diff options
Diffstat (limited to 'final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp')
-rwxr-xr-x | final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp | 19 |
1 files changed, 19 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..f3427d73 --- /dev/null +++ b/final/ABI-Testsuite/test/mangling/anonymousnonpod.xpp @@ -0,0 +1,19 @@ +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// 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(); +} |