Fix test to avoid assuming clang will diagnose problems in unreachable code.

llvm-svn: 360009
This commit is contained in:
Richard Smith 2019-05-06 04:07:30 +00:00
parent f723490e76
commit 9d4bb51f57
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}