diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/dollar.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/dollar.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/dollar.c b/gcc/testsuite/gcc.dg/dollar.c new file mode 100644 index 00000000000..43407f227ed --- /dev/null +++ b/gcc/testsuite/gcc.dg/dollar.c @@ -0,0 +1,9 @@ +/* Copyright (C) 2003 Free Software Foundation, Inc. */ + +/* { dg-do compile } */ +/* { dg-options -fno-dollars-in-identifiers } */ + +/* Test that -fno-dollars-in-identifiers is honoured. + Neil Booth, 17 May 2003. */ + +int foobar$; /* { dg-error "stray '\\$'" } */ |