Skip to content

Commit 449459e

Browse files
[clang] test should not depend on system header
1 parent c57a8f5 commit 449459e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

clang/test/Interpreter/Inputs/vector

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef VECTOR
2+
#define VECTOR
3+
namespace std {
4+
template <typename>
5+
class vector {
6+
public:
7+
vector();
8+
};
9+
} // namespace std
10+
#endif // VECTOR

clang/test/Interpreter/crash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// RUN: split-file %s %t
77
//
8-
// RUN: %clang++ -std=c++20 -fPIC -c %t/vec.cpp -o %t/vec.o
8+
// RUN: %clang++ -Xclang -nostdsysteminc -I%S/Inputs/ -std=c++20 -fPIC -c %t/vec.cpp -o %t/vec.o
99
// RUN: %clang++ -shared %t/vec.o -o %t/vec.so
1010
//
1111
// RUN: cat %t/Test.cpp | LD_LIBRARY_PATH=%t:$LD_LIBRARY_PATH clang-repl

0 commit comments

Comments
 (0)