1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wmain -verify %s
3 // expected-note@+1 {{previous definition is here}}
8 // expected-error@+1 {{redefinition of 'main'}}
15 return b
; // no-warning
19 return true; // expected-warning {{bool literal returned from 'main'}}