mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 22:41:28 +08:00
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:
parent
c93e9e16fb
commit
52058e0da0
@ -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
|
||||
|
19
gcc/testsuite/treelang/compile/unsigned.tree
Normal file
19
gcc/testsuite/treelang/compile/unsigned.tree
Normal 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" } }
|
Loading…
x
Reference in New Issue
Block a user