[clang] c4766ca - [Diagnostic] Add test for previous b4b904e19bb356724b2c6aea0199ce05c6f15cdb
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 3 16:41:58 PST 2020
Author: Tyker
Date: 2020-01-04T01:41:21+01:00
New Revision: c4766cadcb38172c2843d65559060e0ae623b6eb
URL: https://github.com/llvm/llvm-project/commit/c4766cadcb38172c2843d65559060e0ae623b6eb
DIFF: https://github.com/llvm/llvm-project/commit/c4766cadcb38172c2843d65559060e0ae623b6eb.diff
LOG: [Diagnostic] Add test for previous b4b904e19bb356724b2c6aea0199ce05c6f15cdb
Added:
clang/test/Parser/warn-misleading-indentation-fix.cpp
Modified:
Removed:
################################################################################
diff --git a/clang/test/Parser/warn-misleading-indentation-fix.cpp b/clang/test/Parser/warn-misleading-indentation-fix.cpp
new file mode 100644
index 000000000000..bb84d5337a91
--- /dev/null
+++ b/clang/test/Parser/warn-misleading-indentation-fix.cpp
@@ -0,0 +1,3 @@
+int main(void) { for( int i = 0; i < 9; i++ ); return 0; }
+// the crash only occurs on the first line don't move it.
+// RUN: %clang_cc1 -x c -fsyntax-only -Wmisleading-indentation %s
More information about the cfe-commits
mailing list