mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
[clang-repl][NFC] Fix calling convention mismatch in test
Test failed on x86 platforms due to a calling convention mismatch when member function was called like a free function. In this patch, member function is marked static to address this.
This commit is contained in:
parent
d1326a3b10
commit
3ad0c6b75e
@ -221,7 +221,7 @@ TEST(IncrementalProcessing, InstantiateTemplate) {
|
||||
"class A {};"
|
||||
"struct B {"
|
||||
" template<typename T>"
|
||||
" int callme(T) { return 42; }"
|
||||
" static int callme(T) { return 42; }"
|
||||
"};"));
|
||||
auto &PTU = llvm::cantFail(Interp->Parse("auto _t = &B::callme<A*>;"));
|
||||
auto PTUDeclRange = PTU.TUPart->decls();
|
||||
|
Loading…
Reference in New Issue
Block a user