diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-28 18:10:41 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-28 18:10:41 +0000 |
| commit | 028ef37151e8e22019ff3d25adea6589473496e2 (patch) | |
| tree | 5896c62e3f835183b55a31358c240e7a6fc87c33 | |
| parent | a646135603f625b28cbe7eb45bcbc7f9ff87c040 (diff) | |
| download | ppe42-gcc-028ef37151e8e22019ff3d25adea6589473496e2.tar.gz ppe42-gcc-028ef37151e8e22019ff3d25adea6589473496e2.zip | |
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37101 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/gcc.dg/cpp/strify2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/strify2.c b/gcc/testsuite/gcc.dg/cpp/strify2.c index 18777bd9b7e..c24220c70e0 100644 --- a/gcc/testsuite/gcc.dg/cpp/strify2.c +++ b/gcc/testsuite/gcc.dg/cpp/strify2.c @@ -14,6 +14,10 @@ extern void abort (void); #define xstr(x) str(x) #define strvar(...) #__VA_ARGS__ +#define glibc_str(x) glibc_str2 (w, x) +#define glibc_str2(w, x) #x +#define ver GLIBC_2.2 + int main (int argc, char *argv[]) { str (\); /* { dg-warning "valid string" "str(\\)" } */ @@ -45,5 +49,8 @@ int main (int argc, char *argv[]) if (strcmp (strvar (foo, bar), "foo, bar")) err ("variable arguments"); + if (strcmp (glibc_str (ver), "GLIBC_2.2")) + err ("whitespace"); + return 0; } |

