summaryrefslogtreecommitdiffstats
path: root/test/Index/pragma-diag-reparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/pragma-diag-reparse.c')
-rw-r--r--test/Index/pragma-diag-reparse.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Index/pragma-diag-reparse.c b/test/Index/pragma-diag-reparse.c
new file mode 100644
index 0000000..efe59b1
--- /dev/null
+++ b/test/Index/pragma-diag-reparse.c
@@ -0,0 +1,13 @@
+// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local %s | FileCheck %s
+
+int main (int argc, const char * argv[])
+{
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ int x;
+#pragma clang diagnostic pop
+
+ return 0;
+}
+
+// CHECK: pragma-diag-reparse.c:7:7: VarDecl=x:7:7 (Definition) Extent=[7:3 - 7:8]
OpenPOWER on IntegriCloud