summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/stress1/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs/stress1/common.h')
-rw-r--r--clang/test/Modules/Inputs/stress1/common.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/stress1/common.h b/clang/test/Modules/Inputs/stress1/common.h
new file mode 100644
index 00000000000..d2fff1098d9
--- /dev/null
+++ b/clang/test/Modules/Inputs/stress1/common.h
@@ -0,0 +1,38 @@
+#ifndef STRESS1_COMMON_H
+#define STRESS1_COMMON_H
+
+inline char function00(char x) { return x + x; }
+inline short function00(short x) { return x + x; }
+inline int function00(int x) { return x + x; }
+
+namespace N00 {
+struct S00 {
+ char c;
+ short s;
+ int i;
+
+ S00(char x) : c(x) {}
+ S00(short x) : s(x) {}
+ S00(int x) : i(x) {}
+
+ char method00(char x) { return x + x; }
+ short method00(short x) { return x + x; }
+ int method00(int x) { return x + x; }
+
+ operator char() { return c; }
+ operator short() { return s; }
+ operator int() { return i; }
+};
+struct S01 {};
+struct S03 {};
+}
+
+namespace N01 {
+struct S00 : N00::S00 {
+ using N00::S00::S00;
+};
+struct S01 {};
+struct S02 {};
+}
+
+#endif
OpenPOWER on IntegriCloud