summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/pragma-warning/with-includes-2.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/preprocessor/pragma-warning/with-includes-2.slang')
-rw-r--r--tests/preprocessor/pragma-warning/with-includes-2.slang14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/preprocessor/pragma-warning/with-includes-2.slang b/tests/preprocessor/pragma-warning/with-includes-2.slang
new file mode 100644
index 000000000..13e34520f
--- /dev/null
+++ b/tests/preprocessor/pragma-warning/with-includes-2.slang
@@ -0,0 +1,14 @@
+//TEST:SIMPLE(filecheck=CHECK):
+// #ifdef support
+#include "helper-2.slang"
+
+int64_t GetValue();
+
+void f()
+{
+ int i;
+ // CHECK: ([[# @LINE+1]]): warning 30081:
+ i = GetValue();
+}
+
+// Test that the #pragma warning (push / pop) englobing helper-2.slang are working \ No newline at end of file