diff options
author | Neil Booth <neil@gcc.gnu.org> | 2000-10-28 18:10:41 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-10-28 18:10:41 +0000 |
commit | 66cb3475e4f84deb77255034640e2520f235bd81 (patch) | |
tree | 5896c62e3f835183b55a31358c240e7a6fc87c33 /gcc/testsuite/gcc.dg/cpp/strify2.c | |
parent | e7f7ca12e22a930907bc24b4dd14886a43d0489c (diff) | |
download | gcc-66cb3475e4f84deb77255034640e2520f235bd81.zip gcc-66cb3475e4f84deb77255034640e2520f235bd81.tar.gz gcc-66cb3475e4f84deb77255034640e2520f235bd81.tar.bz2 |
*** empty log message ***
From-SVN: r37101
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/strify2.c')
-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 18777bd..c24220c 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; } |