aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll')
-rw-r--r--test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll b/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll
new file mode 100644
index 0000000..2c6a596
--- /dev/null
+++ b/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+
+; Apparently this constant was unsigned in ISO C 90, but not in C 99.
+
+int %foo() {
+ ret int -2147483648
+}