summaryrefslogtreecommitdiff
path: root/clang/test/Index/targeted-top.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/targeted-top.h')
-rw-r--r--clang/test/Index/targeted-top.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/Index/targeted-top.h b/clang/test/Index/targeted-top.h
new file mode 100644
index 0000000..0f3c975
--- /dev/null
+++ b/clang/test/Index/targeted-top.h
@@ -0,0 +1,24 @@
+
+#ifndef TARGETED_TOP_H
+#define TARGETED_TOP_H
+
+#include "targeted-nested1.h"
+
+enum {
+ VALUE = 3
+};
+
+extern int TopVar;
+
+typedef struct {
+ int x;
+ int y;
+#include "targeted-fields.h"
+} Vector;
+
+static inline int vector_get_x(Vector v) {
+ int x = v.x;
+ return x;
+}
+
+#endif