summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20030203-1.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-03 15:07:50 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-03 15:07:50 +0000
commit8e2375accbc4001ccee4d2d71a479487cfd054c3 (patch)
tree1f00b43b889e38658a9e62a071612b74ba56f414 /gcc/testsuite/gcc.c-torture/execute/20030203-1.c
parentd5b9a548570f003ec6ed7cd72cc0d4e8b473359c (diff)
downloadgcc-8e2375accbc4001ccee4d2d71a479487cfd054c3.tar.gz
* gcc.c-torture/execute/20030203-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62314 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20030203-1.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20030203-1.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20030203-1.c b/gcc/testsuite/gcc.c-torture/execute/20030203-1.c
new file mode 100644
index 00000000000..3ce3d611ef6
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20030203-1.c
@@ -0,0 +1,23 @@
+void f(int);
+int do_layer3(int single)
+{
+ int stereo1;
+
+ if(single >= 0) /* stream is stereo, but force to mono */
+ stereo1 = 1;
+ else
+ stereo1 = 2;
+ f(single);
+
+ return stereo1;
+}
+
+extern void abort ();
+int main()
+{
+ if (do_layer3(-1) != 2)
+ abort ();
+ return 0;
+}
+
+void f(int i) {}