diff options
Diffstat (limited to 'test/CXX/basic/basic.start/basic.start.main/p2d.cpp')
-rw-r--r-- | test/CXX/basic/basic.start/basic.start.main/p2d.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CXX/basic/basic.start/basic.start.main/p2d.cpp b/test/CXX/basic/basic.start/basic.start.main/p2d.cpp new file mode 100644 index 000000000000..777b5ceb743a --- /dev/null +++ b/test/CXX/basic/basic.start/basic.start.main/p2d.cpp @@ -0,0 +1,4 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +static int main() { // expected-error {{'main' is not allowed to be declared static}} +} |