[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Analysis / egraph-asm-goto-no-crash.cpp
blob37f8fc533abe35c6539bc05e7f568d3eb2918ba5
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s
3 // expected-no-diagnostics
5 void clang_analyzer_warnIfReached();
7 void testAsmGoto() {
8 asm goto("xor %0, %0\n je %l[label1]\n jl %l[label2]"
9 : /* no outputs */
10 : /* inputs */
11 : /* clobbers */
12 : label1, label2 /* any labels used */);
14 // FIXME: Should be reachable.
15 clang_analyzer_warnIfReached();
17 label1:
18 // FIXME: Should be reachable.
19 clang_analyzer_warnIfReached();
20 return;
22 label2:
23 // FIXME: Should be reachable.
24 clang_analyzer_warnIfReached();
25 return;