File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2111,6 +2111,21 @@ TEST_F(SymbolCollectorTest, Reserved) {
2111
2111
EXPECT_THAT (Symbols, IsEmpty ());
2112
2112
}
2113
2113
2114
+ TEST_F (SymbolCollectorTest, UnreservedIntrin) {
2115
+ const char *Header = R"cpp(
2116
+ #pragma once
2117
+ void __foo();
2118
+ )cpp" ;
2119
+
2120
+ TestHeaderName = " x.h" ;
2121
+ TestFileName = " x.cpp" ;
2122
+ TestHeaderURI = URI::create (testPath (TestHeaderName)).toString ();
2123
+ InMemoryFileSystem = new llvm::vfs::InMemoryFileSystem;
2124
+ CollectorOpts.FallbackDir = testRoot ();
2125
+ runSymbolCollector (" #pragma GCC system_header\n " + std::string (Header), " " );
2126
+ EXPECT_THAT (Symbols, !IsEmpty ());
2127
+ }
2128
+
2114
2129
TEST_F (SymbolCollectorTest, Concepts) {
2115
2130
const char *Header = R"cpp(
2116
2131
template <class T>
You can’t perform that action at this time.
0 commit comments