summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/class/Inputs/class1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ASTMerge/class/Inputs/class1.cpp')
-rw-r--r--clang/test/ASTMerge/class/Inputs/class1.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/class/Inputs/class1.cpp b/clang/test/ASTMerge/class/Inputs/class1.cpp
new file mode 100644
index 00000000000..2bd5503ecf3
--- /dev/null
+++ b/clang/test/ASTMerge/class/Inputs/class1.cpp
@@ -0,0 +1,48 @@
+struct A {
+ public:
+ int x;
+};
+
+struct B : A {
+ float y;
+ float foo();
+};
+
+struct C {
+ C(int i = 10);
+ C(const C&);
+ C &operator=(C&);
+ ~C();
+};
+
+enum E {
+ b = 1
+};
+
+//Friend import tests
+void f();
+int g(int a);
+struct X;
+struct Y;
+
+struct F1 {
+public:
+ int x;
+ friend struct X;
+ friend int g(int);
+ friend void f();
+};
+
+struct F2 {
+public:
+ int x;
+ friend struct X;
+ friend void f();
+};
+
+struct F3 {
+public:
+ int x;
+ friend int g(int);
+ friend void f();
+};
OpenPOWER on IntegriCloud