mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 16:51:13 +08:00
builtin_constant_p.c: New test.
* gcc.c-torture/compile/builtin_constant_p.c: New test. (neglected in previous commit) From-SVN: r114359
This commit is contained in:
parent
63b4819753
commit
89cfff85bf
8
gcc/testsuite/gcc.c-torture/compile/builtin_constant_p.c
Normal file
8
gcc/testsuite/gcc.c-torture/compile/builtin_constant_p.c
Normal file
@ -0,0 +1,8 @@
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
static int a[] = { __builtin_constant_p (argc) ? 1 : 0 };
|
||||
return a[0];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user