summaryrefslogtreecommitdiff
path: root/clang/test/CXX/basic/basic.start/basic.start.main/p2h.cpp
blob: abf8faa968cf15bf1d8abbd868784f09a1ab85bb (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only -verify %s 

template<typename T>
int main() { } // expected-error{{'main' cannot be a template}}