[cfe-commits] r88801 - /cfe/trunk/test/FixIt/fixit.c
Daniel Dunbar
daniel at zuster.org
Sat Nov 14 11:25:21 PST 2009
Author: ddunbar
Date: Sat Nov 14 13:25:21 2009
New Revision: 88801
URL: http://llvm.org/viewvc/llvm-project?rev=88801&view=rev
Log:
Improve test to make sure -fixit is really working.
Modified:
cfe/trunk/test/FixIt/fixit.c
Modified: cfe/trunk/test/FixIt/fixit.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit.c?rev=88801&r1=88800&r2=88801&view=diff
==============================================================================
--- cfe/trunk/test/FixIt/fixit.c (original)
+++ cfe/trunk/test/FixIt/fixit.c Sat Nov 14 13:25:21 2009
@@ -1,4 +1,6 @@
-// RUN: clang-cc -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
+// RUN: clang-cc -pedantic -fixit %s -o - | grep -v 'CHECK' > %t
+// RUN: clang-cc -pedantic -Werror -x c -
+// RUN: FileCheck -input-file=%t %s
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
@@ -12,9 +14,13 @@
int x, y;;
};
+// CHECK: _Complex double cd;
_Complex cd;
+// CHECK: struct s s0 = { .y = 5 };
struct s s0 = { y: 5 };
+
+// CHECK: int array0[5] = { [3] = 3 };
int array0[5] = { [3] 3 };
void f1(x, y)
@@ -25,5 +31,7 @@
int f2(const char *my_string) {
// FIXME: terminal output isn't so good when "my_string" is shorter
+// CHECK: return strcmp(my_string , "foo") == 0;
return my_string == "foo";
}
+
More information about the cfe-commits
mailing list