unsigned.tree: New test.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/unsigned.tree: New test.

From-SVN: r95579
This commit is contained in:
James A. Morrison 2005-02-26 14:05:15 +00:00
parent c93e9e16fb
commit 52058e0da0
2 changed files with 23 additions and 0 deletions

View 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

View File

@ -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" } }