diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-09 23:04:50 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-09 23:04:50 +0000 |
commit | 19e447101e84dfd5c6e398207ac6a25c5f49d046 (patch) | |
tree | df88f7b4b2a5ff54ad835749f46ef88e4273aecb /gcc/testsuite | |
parent | 4fa44d8907d93071abdeead47c8d6aba8200b55e (diff) | |
download | gcc-19e447101e84dfd5c6e398207ac6a25c5f49d046.tar.gz |
Add another case
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32458 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp-redef-2.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp-redef-2.c b/gcc/testsuite/gcc.dg/cpp-redef-2.c index d57f26acf41..99af954e8ae 100644 --- a/gcc/testsuite/gcc.dg/cpp-redef-2.c +++ b/gcc/testsuite/gcc.dg/cpp-redef-2.c @@ -6,6 +6,7 @@ #define mac(a, b) (a) + (b) #define mac(a, b) (a) * (b) #define mac(a, b) (a) * (x) +#define mac(a, g) (a) * (x) #define ro(x) foo x bar #define ro(x, b) foo x bar @@ -15,13 +16,15 @@ /* { dg-warning "redefined" "redef mac" { target *-*-* } 7 } { dg-warning "redefined" "redef mac" { target *-*-* } 8 } - { dg-warning "redefined" "redef ro" { target *-*-* } 11 } - { dg-warning "redefined" "redef va" { target *-*-* } 14 } + { dg-warning "redefined" "redef mac" { target *-*-* } 9 } + { dg-warning "redefined" "redef ro" { target *-*-* } 12 } + { dg-warning "redefined" "redef va" { target *-*-* } 15 } { dg-warning "previous" "prev def mac" { target *-*-* } 6 } { dg-warning "previous" "prev def mac" { target *-*-* } 7 } - { dg-warning "previous" "prev def ro" { target *-*-* } 10 } - { dg-warning "previous" "prev def va" { target *-*-* } 13 } + { dg-warning "previous" "prev def mac" { target *-*-* } 8 } + { dg-warning "previous" "prev def ro" { target *-*-* } 11 } + { dg-warning "previous" "prev def va" { target *-*-* } 14 } - { dg-warning "varargs" "named varargs" { target *-*-* } 13 } - { dg-warning "varargs" "anon varargs" { target *-*-* } 14 } */ + { dg-warning "varargs" "named varargs" { target *-*-* } 14 } + { dg-warning "varargs" "anon varargs" { target *-*-* } 15 } */ |