New test.
authorRichard Henderson <rth@gcc.gnu.org>
Sun, 30 Mar 2003 23:25:49 +0000 (15:25 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 30 Mar 2003 23:25:49 +0000 (15:25 -0800)
From-SVN: r65062

gcc/testsuite/gcc.c-torture/execute/20030330-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20030330-1.c b/gcc/testsuite/gcc.c-torture/execute/20030330-1.c
new file mode 100644 (file)
index 0000000..639e47b
--- /dev/null
@@ -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; }