Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/Wvarargs.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
4 | 4 |
5 void | 5 void |
6 err (int a) | 6 err (int a) |
7 { | 7 { |
8 va_list vp; | 8 va_list vp; |
9 va_start (vp, a); // { dg-error "used in function with fixed args" } | 9 va_start (vp, a); // { dg-error "used in function with fixed arguments" } |
10 } | 10 } |
11 | 11 |
12 #pragma GCC diagnostic push | 12 #pragma GCC diagnostic push |
13 #pragma GCC diagnostic ignored "-Wvarargs" | 13 #pragma GCC diagnostic ignored "-Wvarargs" |
14 | 14 |