unsigned.tree: New test.
authorJames A. Morrison <phython@gcc.gnu.org>
Sat, 26 Feb 2005 14:05:15 +0000 (14:05 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Sat, 26 Feb 2005 14:05:15 +0000 (14:05 +0000)
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/unsigned.tree: New test.

From-SVN: r95579

gcc/testsuite/treelang/ChangeLog
gcc/testsuite/treelang/compile/unsigned.tree [new file with mode: 0644]

index 59db353..878f541 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
+
+       * compile/unsigned.tree: New test.
+
 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
 
        PR other/19896
diff --git a/gcc/testsuite/treelang/compile/unsigned.tree b/gcc/testsuite/treelang/compile/unsigned.tree
new file mode 100644 (file)
index 0000000..d10eacf
--- /dev/null
@@ -0,0 +1,19 @@
+// { dg-do compile }
+// { dg-options "-fdump-tree-generic" }
+external_reference void abort ();
+external_reference void exit (int status);
+external_definition int main (int argc, int argv);
+
+main
+{
+       automatic unsigned int bar = 2147483649;
+       automatic unsigned int baz = 2147483649;
+
+       if (bar == baz) {
+               abort ();
+       } else {
+               exit (0);
+       }
+       return +1;
+}
+// { dg-final { scan-tree-dump-not "\\\(int\\\)" "generic" } }