diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 18:08:04 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 18:08:04 +0000 |
commit | 0090b1e540804e3bc2cb5e7993c814e8bb1ac734 (patch) | |
tree | b9b1e29df44d6b796427579573476a26f94ff045 /gcc/testsuite/gcc.dg/c99-func-4.c | |
parent | 087e845912daf17c3c6b29892100fc109b2867cb (diff) | |
download | gcc-0090b1e540804e3bc2cb5e7993c814e8bb1ac734.tar.gz |
* gcc.dg/c90-array-lval-2.c, gcc.dg/c90-const-expr-2.c,
gcc.dg/c99-array-lval-2.c, gcc.dg/c99-const-expr-2.c,
gcc.dg/c99-func-3.c, gcc.dg/c99-func-4.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c99-func-4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c99-func-4.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c99-func-4.c b/gcc/testsuite/gcc.dg/c99-func-4.c new file mode 100644 index 00000000000..d1388033dab --- /dev/null +++ b/gcc/testsuite/gcc.dg/c99-func-4.c @@ -0,0 +1,10 @@ +/* Test for C99 __func__: of type const char []. */ +/* Origin: Joseph Myers <jsm28@cam.ac.uk> */ +/* { dg-do compile } */ +/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ + +void +foo (void) +{ + char *p = __func__; /* { dg-error "discards" "__func__ pointer to const" { xfail *-*-* } } */ +} |