summaryrefslogtreecommitdiff
path: root/test/ASTMerge/class/Inputs/class2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ASTMerge/class/Inputs/class2.cpp')
-rw-r--r--test/ASTMerge/class/Inputs/class2.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/ASTMerge/class/Inputs/class2.cpp b/test/ASTMerge/class/Inputs/class2.cpp
index 2bed6d775bc46..6fe38b9206629 100644
--- a/test/ASTMerge/class/Inputs/class2.cpp
+++ b/test/ASTMerge/class/Inputs/class2.cpp
@@ -12,3 +12,29 @@ enum E {
a = 0,
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;
+};
+
+struct F3 {
+public:
+ int x;
+ friend void f();
+};