[Diagnostic] Add test for previous b4b904e19bb356724b2c6aea0199ce05c6f15cdb
authorTyker <tyker1@outlook.com>
Fri, 3 Jan 2020 23:14:17 +0000 (00:14 +0100)
committerTyker <tyker1@outlook.com>
Sat, 4 Jan 2020 00:41:21 +0000 (01:41 +0100)
clang/test/Parser/warn-misleading-indentation-fix.cpp [new file with mode: 0644]

diff --git a/clang/test/Parser/warn-misleading-indentation-fix.cpp b/clang/test/Parser/warn-misleading-indentation-fix.cpp
new file mode 100644 (file)
index 0000000..bb84d53
--- /dev/null
@@ -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