aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/20000314-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/20000314-2.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/20000314-2.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/20000314-2.c b/SingleSource/Regression/C/gcc-c-torture/execute/20000314-2.c
new file mode 100644
index 00000000..d01f58c0
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/20000314-2.c
@@ -0,0 +1,21 @@
+typedef unsigned long long uint64;
+const uint64 bigconst = 1ULL << 34;
+
+int a = 1;
+
+static
+uint64 getmask(void)
+{
+ if (a)
+ return bigconst;
+ else
+ return 0;
+}
+
+main()
+{
+ uint64 f = getmask();
+ if (sizeof (long long) == 8
+ && f != bigconst) abort ();
+ exit (0);
+}