forked from OSchip/llvm-project
Fix test to avoid assuming clang will diagnose problems in unreachable code.
llvm-svn: 360009
This commit is contained in:
parent
f723490e76
commit
9d4bb51f57
|
@ -171,6 +171,8 @@ TEST(DiagnosticsTest, ClangTidy) {
|
|||
#define $macrodef[[SQUARE]](X) (X)*(X)
|
||||
int main() {
|
||||
return $doubled[[sizeof]](sizeof(int));
|
||||
}
|
||||
int square() {
|
||||
int y = 4;
|
||||
return SQUARE($macroarg[[++]]y);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue