diff options
Diffstat (limited to 'tests/cxx/badinc.cc')
-rw-r--r-- | tests/cxx/badinc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cxx/badinc.cc b/tests/cxx/badinc.cc index 2986798..0c42ea2 100644 --- a/tests/cxx/badinc.cc +++ b/tests/cxx/badinc.cc @@ -57,6 +57,8 @@ // Some of the #include lines are deliberately formatted wrong, in // order to test that IWYU handles them correctly. #include <math.h> // not actually used +#include <stdarg.h> + #include <typeinfo> // for typeid #include "tests/cxx/badinc-inl.h" #include "tests/cxx/badinc.h" @@ -1063,9 +1065,6 @@ int main() { // IWYU: I1_PtrDereferenceClass needs a declaration I1_PtrDereferenceClass* local_i1_ptrdereference_class = 0; int x; - // 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 @@ -1837,6 +1836,7 @@ The full include-list for tests/cxx/badinc.cc: #include <ctype.h> // for isascii #include <setjmp.h> #include <stddef.h> // for offsetof +#include <stdarg.h> // for va_list #include <algorithm> // for find #include <fstream> // for fstream #include <list> // for list |