Skip to content

Commit 86210ed

Browse files
committed
Add test to verify fix for crash
1 parent 559a2d0 commit 86210ed

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

clang/test/Interpreter/crash.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// REQUIRES: host-supports-jit, x86_64-linux
2+
3+
// RUN: rm -rf %t
4+
// RUN: mkdir -p %t
5+
//
6+
// RUN: split-file %s %t
7+
//
8+
// RUN: %clang++ -std=c++20 -fPIC -c %t/vec.cpp -o %t/vec.o
9+
// RUN: %clang++ -shared %t/vec.o -o %t/vec.so
10+
//
11+
// RUN: cat %t/Test.cpp | LD_LIBRARY_PATH=%t:$LD_LIBRARY_PATH clang-repl
12+
13+
//--- vec.cpp
14+
#include <vector>
15+
16+
//--- Test.cpp
17+
%lib vec.dylib
18+
#include <vector>
19+
std::vector<int> v;
20+
%quit

0 commit comments

Comments
 (0)