Bug#157416: _Pragma() from macros - bug

2002-09-06 Thread Neil Booth
Steve Ellcey wrote:- > > I am confused by the new test gcc.dg/cpp/_Pragma4.c that was added by > this patch and wonder if I am missing something or if there is a typo in > the test. > > I believe the test is searching for the string '#pragma bat' (bat with a > t) to see if the tests succeeded, b

Bug#157416: _Pragma() from macros - bug

2002-09-06 Thread Steve Ellcey
I am confused by the new test gcc.dg/cpp/_Pragma4.c that was added by this patch and wonder if I am missing something or if there is a typo in the test. I believe the test is searching for the string '#pragma bat' (bat with a t) to see if the tests succeeded, but how would that appear in the outp

Bug#157416: _Pragma() from macros - bug

2002-09-03 Thread Neil Booth
Zack Weinberg wrote:- > This was reported to the Debian bug-tracking system: > > $ cat foo.c > _Pragma("foo"); int y; > #define FOO _Pragma("foo"); int x; > FOO > [EMAIL PROTECTED]:~$ cpp-3.2 foo.c > # 1 "foo.c" > # 1 "" > # 1 "" > # 1 "foo.c" > > # 1 "foo.c" > #pragma foo > # 1 "foo.c" >

Bug#157416: _Pragma() from macros - bug

2002-08-30 Thread Neil Booth
Zack Weinberg wrote:- > This was reported to the Debian bug-tracking system: > > $ cat foo.c > _Pragma("foo"); int y; > #define FOO _Pragma("foo"); int x; > FOO > [EMAIL PROTECTED]:~$ cpp-3.2 foo.c > # 1 "foo.c" > # 1 "" > # 1 "" > # 1 "foo.c" > > # 1 "foo.c" > #pragma foo > # 1 "foo.c" >

Bug#157416: _Pragma() from macros - bug

2002-08-29 Thread Zack Weinberg
This was reported to the Debian bug-tracking system: $ cat foo.c _Pragma("foo"); int y; #define FOO _Pragma("foo"); int x; FOO [EMAIL PROTECTED]:~$ cpp-3.2 foo.c # 1 "foo.c" # 1 "" # 1 "" # 1 "foo.c" # 1 "foo.c" #pragma foo # 1 "foo.c" ; int y; # 3 "foo.c" #pragma ; int x;foo >