aboutsummaryrefslogtreecommitdiff
path: root/test/Index/t2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/t2.c')
-rw-r--r--test/Index/t2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Index/t2.c b/test/Index/t2.c
new file mode 100644
index 000000000000..bf52869ec8d9
--- /dev/null
+++ b/test/Index/t2.c
@@ -0,0 +1,14 @@
+#include "foo.h"
+
+int global_var = 10;
+
+void bar_func(void) {
+ global_var += 100;
+ foo_func(global_var);
+
+ struct MyStruct *ms;
+ ms->field_var = 10;
+}
+
+// Suppress 'no run line' failure.
+// RUN: true