summaryrefslogtreecommitdiff
path: root/test/ASTMerge/Inputs/anonymous-fields2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ASTMerge/Inputs/anonymous-fields2.cpp')
-rw-r--r--test/ASTMerge/Inputs/anonymous-fields2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ASTMerge/Inputs/anonymous-fields2.cpp b/test/ASTMerge/Inputs/anonymous-fields2.cpp
new file mode 100644
index 0000000000000..28ea46d98711b
--- /dev/null
+++ b/test/ASTMerge/Inputs/anonymous-fields2.cpp
@@ -0,0 +1,9 @@
+class A {
+public:
+ struct { int foo; } f;
+ struct { int foo; } g;
+};
+
+inline int useA(A &a) {
+ return (a.f.foo + a.g.foo);
+}