File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1829,6 +1829,14 @@ static void missingHeader3()
1829
1829
ASSERT_EQUALS (" " , toString (outputList));
1830
1830
}
1831
1831
1832
+ static void missingHeader4 ()
1833
+ {
1834
+ const char code[] = " #/**/include <>\n " ;
1835
+ simplecpp::OutputList outputList;
1836
+ ASSERT_EQUALS (" " , preprocess (code, &outputList));
1837
+ ASSERT_EQUALS (" " , toString (outputList));
1838
+ }
1839
+
1832
1840
static void nestedInclude ()
1833
1841
{
1834
1842
const char code[] = " #include \" test.h\"\n " ;
@@ -3057,6 +3065,7 @@ int main(int argc, char **argv)
3057
3065
TEST_CASE (missingHeader1);
3058
3066
TEST_CASE (missingHeader2);
3059
3067
TEST_CASE (missingHeader3);
3068
+ TEST_CASE (missingHeader4);
3060
3069
TEST_CASE (nestedInclude);
3061
3070
TEST_CASE (systemInclude);
3062
3071
You can’t perform that action at this time.
0 commit comments