diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 1999-01-19 12:10:15 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 1999-01-19 12:10:15 +0000 |
commit | ea96098d3ba5b324bcbe272729f1c8f5c40d8a8e (patch) | |
tree | 4142b5340aa5c01c0024e415f89b6fb0e0ff01ba | |
parent | 3243be289f0759772ad24bd507b754bb47f00093 (diff) | |
download | gcc-ea96098d3ba5b324bcbe272729f1c8f5c40d8a8e.zip gcc-ea96098d3ba5b324bcbe272729f1c8f5c40d8a8e.tar.gz gcc-ea96098d3ba5b324bcbe272729f1c8f5c40d8a8e.tar.bz2 |
New test case for the preprocessor.
I made it up myself; the inspiration came from a comp.std.c post. -zack
From-SVN: r24767
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/990119-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/990119-1.c b/gcc/testsuite/gcc.c-torture/execute/990119-1.c new file mode 100644 index 0000000..80981cc --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/990119-1.c @@ -0,0 +1,13 @@ +/* This checks for two things: + - an obscure corner case in the standard rules for __LINE__ + - regression of an associated bug in cpplib where the semicolon got lost */ +int i = __LINE__\ +; + +int main (void) +{ + if (i != 4) + abort(); + else + return 0; +} |