mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 00:19:47 +08:00
New test.
From-SVN: r65062
This commit is contained in:
parent
3d1f4922c3
commit
b8aa705cee
14
gcc/testsuite/gcc.c-torture/execute/20030330-1.c
Normal file
14
gcc/testsuite/gcc.c-torture/execute/20030330-1.c
Normal file
@ -0,0 +1,14 @@
|
||||
/* PR opt/10011 */
|
||||
/* This is link test for builtin_constant_p simplification + DCE. */
|
||||
|
||||
extern void link_error(void);
|
||||
static void usb_hub_port_wait_reset(unsigned int delay)
|
||||
{
|
||||
int delay_time;
|
||||
for (delay_time = 0; delay_time < 500; delay_time += delay) {
|
||||
if (__builtin_constant_p(delay))
|
||||
link_error();
|
||||
}
|
||||
}
|
||||
|
||||
int main() { return 0; }
|
Loading…
Reference in New Issue
Block a user