summaryrefslogtreecommitdiff
path: root/test/CXX/basic/basic.start/basic.start.main/p2f.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/basic/basic.start/basic.start.main/p2f.cpp')
-rw-r--r--test/CXX/basic/basic.start/basic.start.main/p2f.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CXX/basic/basic.start/basic.start.main/p2f.cpp b/test/CXX/basic/basic.start/basic.start.main/p2f.cpp
new file mode 100644
index 0000000000000..b7845b13e9a4b
--- /dev/null
+++ b/test/CXX/basic/basic.start/basic.start.main/p2f.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+void // expected-error {{error: 'main' must return 'int'}}
+main( // expected-error {{error: first argument of 'main' should be of type 'int'}}
+ float a
+) {
+}