diff options
Diffstat (limited to 'tests/cxx/badinc.cc')
-rw-r--r-- | tests/cxx/badinc.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cxx/badinc.cc b/tests/cxx/badinc.cc index e58a98f..3c3c3aa 100644 --- a/tests/cxx/badinc.cc +++ b/tests/cxx/badinc.cc @@ -1094,8 +1094,10 @@ int main() { // IWYU: I1_PtrDereferenceClass needs a declaration I1_PtrDereferenceClass* local_i1_ptrdereference_class = 0; int x; - // IWYU: va_list is...*<stdarg.h> - va_list vl; // in gcc, va_list is an internal type, so this tests <built-in> + // va_list is normally in <stdarg.h>, but we already have <stdio.h> + // available, so mappings will source it from there. + // IWYU: va_list is...*<stdio.h> + va_list vl; D1_I1_Typedef d1_i1_typedef; // IWYU: i1_int is...*badinc-i1.h int vararray[i1_int]; @@ -1859,7 +1861,6 @@ int main() { tests/cxx/badinc.cc should add these lines: #include <ctype.h> -#include <stdarg.h> #include <stddef.h> #include <list> #include "tests/cxx/badinc-i1.h" @@ -1889,7 +1890,6 @@ The full include-list for tests/cxx/badinc.cc: #include "tests/cxx/badinc-inl.h" #include <ctype.h> // for isascii #include <setjmp.h> -#include <stdarg.h> // for va_list #include <stddef.h> // for offsetof #include <algorithm> // for find #include <fstream> // for fstream |