llvm-project/clang/test/Analysis/uninit-asm-goto.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
209 B
C++
Raw Normal View History

// RUN: %clang_cc1 -std=c++11 -Wuninitialized -verify %s
// expected-no-diagnostics
int test1(int x) {
int y;
asm goto("# %0 %1 %l2" : "=r"(y) : "r"(x) : : err);
return y;
err:
return -1;
}