summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr34154.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr34154.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr34154.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr34154.c b/gcc/testsuite/gcc.c-torture/execute/pr34154.c
new file mode 100644
index 00000000000..cd7bfc6b001
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/pr34154.c
@@ -0,0 +1,16 @@
+int foo( unsigned long long aLL )
+{
+ switch( aLL )
+ {
+ case 1000000000000000000ULL ... 9999999999999999999ULL : return 19 ;
+ default : return 20 ;
+ };
+};
+extern void abort (void);
+int main()
+{
+ unsigned long long aLL = 1000000000000000000ULL;
+ if (foo (aLL) != 19)
+ abort ();
+ return 0;
+}