aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/FunctionResolve
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/FunctionResolve')
-rw-r--r--test/Transforms/FunctionResolve/2003-05-31-AllInternalDecls.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/FunctionResolve/2003-05-31-AllInternalDecls.ll b/test/Transforms/FunctionResolve/2003-05-31-AllInternalDecls.ll
new file mode 100644
index 0000000..88d6775
--- /dev/null
+++ b/test/Transforms/FunctionResolve/2003-05-31-AllInternalDecls.ll
@@ -0,0 +1,10 @@
+; This testcase should not cause a warning!
+
+; RUN: if (as < %s | opt -funcresolve -disable-output) 2>&1 | grep 'WARNING'
+; RUN: then exit 1
+; RUN: else exit 0
+; RUN: fi
+
+%X = internal global float 1.0
+%X = internal global int 1
+