aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2002-02-18-64bitConstant.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2002-02-18-64bitConstant.c')
-rw-r--r--test/FrontendC/2002-02-18-64bitConstant.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC/2002-02-18-64bitConstant.c b/test/FrontendC/2002-02-18-64bitConstant.c
new file mode 100644
index 0000000..6fd3e29
--- /dev/null
+++ b/test/FrontendC/2002-02-18-64bitConstant.c
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
+/* GCC wasn't handling 64 bit constants right fixed */
+
+void main() {
+ long long Var = 123455678902ll;
+ printf("%lld\n", Var);
+}