-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test case of infinite looping on 'static_cast<foo>(::bar)'
This test cases passes with LLVM 14 and 15, and fails with LLVM 18 and 19, though I am not sure what the exact failure condition is. Github: #269 “handle libclang looping”
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// does static cast of a globally qualified thing cause an infinite loop? | ||
|
||
void baz() { static_cast<foo>(::bar); } | ||
|
||
// XFAIL: version.parse(os.environ["LLVM_VERSION"]) >= version.parse("16.0.0") | ||
// RUN: {%timeout} 5s env ASAN_OPTIONS=detect_leaks=0 clink --build-only --database={%t} --debug --parse-c=clang --parse-cxx=clang {%s} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters