New test.

From-SVN: r65062
This commit is contained in:
Richard Henderson 2003-03-30 15:25:49 -08:00
parent 3d1f4922c3
commit b8aa705cee

View 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; }