summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/enum5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/enum5.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/enum5.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/enum5.C b/gcc/testsuite/g++.old-deja/g++.jason/enum5.C
new file mode 100644
index 000000000..a05d4d346
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/enum5.C
@@ -0,0 +1,9 @@
+// { dg-do run }
+enum { a = 1 };
+
+int main(void)
+{
+ int l = -1;
+
+ return ! (l < a); // testcase fails if a is unsigned
+}