From: Zack Weinberg Date: Tue, 19 Jan 1999 12:10:15 +0000 (+0000) Subject: New test case for the preprocessor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea96098d3ba5b324bcbe272729f1c8f5c40d8a8e;p=gcc.git New test case for the preprocessor. I made it up myself; the inspiration came from a comp.std.c post. -zack From-SVN: r24767 --- 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 00000000000..80981cc9e9c --- /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; +}