summaryrefslogtreecommitdiff
path: root/clang/test/FixIt/no-typo.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/FixIt/no-typo.c')
-rw-r--r--clang/test/FixIt/no-typo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/FixIt/no-typo.c b/clang/test/FixIt/no-typo.c
new file mode 100644
index 0000000..05947e8
--- /dev/null
+++ b/clang/test/FixIt/no-typo.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -fno-spell-checking -verify %s
+typedef struct {
+ float x, y;
+} Point;
+
+point p1; // expected-error{{unknown type name 'point'}}