diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/pr70651.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/pr70651.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/pr70651.c b/gcc/testsuite/c-c++-common/pr70651.c new file mode 100644 index 0000000000..a91a2d8fc8 --- /dev/null +++ b/gcc/testsuite/c-c++-common/pr70651.c @@ -0,0 +1,9 @@ +/* PR c/70651 */ +/* { dg-do compile } */ +/* { dg-prune-output "\[^\n\r\]*first argument to .va_arg. not of type .va_list.\[^\n\r\]*" } */ + +void fn1 () +{ + char **a = 0; + __builtin_va_arg (a, char **); +} |