summaryrefslogtreecommitdiff
blob: 4d63e0c1530a40d7c8abf9d48593ff3da53f8c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 0c4577fc5796b2824da5629f77bf6bf6bdcd4823 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flo@geekplace.eu>
Date: Sat, 29 Apr 2023 20:12:00 +0200
Subject: [PATCH] tests/cxx/badinc.cc: remove stddef from expected output

--- a/tests/cxx/badinc.cc
+++ b/tests/cxx/badinc.cc
@@ -1415,7 +1415,6 @@ int main() {
   typeof(kI1ConstInt) another_const_int = 1;
   (void)(another_const_int);
   // This is a C standard macro, but is implemented via a gcc extension too.
-  // IWYU: offsetof is...*<stddef.h>
   // IWYU: I1_Struct is...*badinc-i1.h
   (void)(offsetof(I1_Struct, c));
   // IWYU: kI1ConstInt is...*badinc-i1.h
@@ -1807,7 +1806,6 @@ int main() {
 
 tests/cxx/badinc.cc should add these lines:
 #include <ctype.h>
-#include <stddef.h>
 #include <list>
 #include "tests/cxx/badinc-i1.h"
 class D2_Class;
@@ -1836,7 +1834,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 <stddef.h>  // for offsetof
 #include <algorithm>  // for find
 #include <fstream>  // for fstream
 #include <list>  // for list
-- 
2.39.2