summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-09-08 00:31:13 +0000
committerGabor Greif <ggreif@gmail.com>2010-09-08 00:31:13 +0000
commit80c218386fe602893aecf7fd3b9df789ef0bba56 (patch)
tree9d9eeaec36ec542f146d91b3671759b3a0b786bb /clang/test/FixIt/fixit.cpp
parent136d035e45bee162623ba29957742700b66a3c52 (diff)
downloadbcm5719-llvm-80c218386fe602893aecf7fd3b9df789ef0bba56.tar.gz
bcm5719-llvm-80c218386fe602893aecf7fd3b9df789ef0bba56.zip
add a fixit when 'main' does ot return 'int'; review welcome
llvm-svn: 113324
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r--clang/test/FixIt/fixit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp
index 5a281323970..9b39c9e8a57 100644
--- a/clang/test/FixIt/fixit.cpp
+++ b/clang/test/FixIt/fixit.cpp
@@ -60,3 +60,9 @@ namespace rdar7796492 {
}
}
+
+CT<1> main(void); // expected-error{{'main' must return 'int'}}
+
+// typedef CT<1> mainT(void);
+// mainT main; // TODO
+
OpenPOWER on IntegriCloud