summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC/2002-02-18-64bitConstant.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/FrontendC/2002-02-18-64bitConstant.c')
-rw-r--r--llvm/test/FrontendC/2002-02-18-64bitConstant.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/2002-02-18-64bitConstant.c b/llvm/test/FrontendC/2002-02-18-64bitConstant.c
new file mode 100644
index 00000000000..6fd3e29d242
--- /dev/null
+++ b/llvm/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);
+}
OpenPOWER on IntegriCloud