diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-03 15:07:50 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-03 15:07:50 +0000 |
commit | 8e2375accbc4001ccee4d2d71a479487cfd054c3 (patch) | |
tree | 1f00b43b889e38658a9e62a071612b74ba56f414 /gcc/testsuite/gcc.c-torture/execute/20030203-1.c | |
parent | d5b9a548570f003ec6ed7cd72cc0d4e8b473359c (diff) | |
download | gcc-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.c | 23 |
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) {} |