aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/20040520-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/20040520-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/20040520-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/20040520-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/20040520-1.c
new file mode 100644
index 00000000..b4248371
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/20040520-1.c
@@ -0,0 +1,17 @@
+/* PR 15454 */
+
+void abort ();
+int main () {
+ int foo;
+ int bar (void)
+ {
+ int baz = 0;
+ if (foo!=45)
+ baz = foo;
+ return baz;
+ }
+ foo = 1;
+ if (!bar ())
+ abort ();
+ return 0;
+}