summaryrefslogtreecommitdiff
path: root/clang/test/CXX/basic/basic.start/basic.start.main/p2i.cpp
blob: db8da3c4e7c033b0624371dab57aa5f6394bc237 (about) (plain)
1
2
3
4
5
6
// RUN: cp %s %t
// RUN: %clang_cc1 -x c++ %s -std=c++11 -fsyntax-only -verify
// RUN: not %clang_cc1 -x c++ %t -std=c++11 -fixit
// RUN: %clang_cc1 -x c++ %t -std=c++11 -fsyntax-only

constexpr int main() { } // expected-error{{'main' is not allowed to be declared constexpr}}