r173899 - Fix test failure from previous change.
Richard Smith
richard-llvm at metafoo.co.uk
Tue Jan 29 22:27:44 PST 2013
Author: rsmith
Date: Wed Jan 30 00:27:44 2013
New Revision: 173899
URL: http://llvm.org/viewvc/llvm-project?rev=173899&view=rev
Log:
Fix test failure from previous change.
Modified:
cfe/trunk/test/Sema/warn-main.c
Modified: cfe/trunk/test/Sema/warn-main.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-main.c?rev=173899&r1=173898&r2=173899&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-main.c (original)
+++ cfe/trunk/test/Sema/warn-main.c Wed Jan 30 00:27:44 2013
@@ -22,6 +22,7 @@ inline int main() {
return 0;
}
+// expected-warning at +6 {{function 'main' declared 'noreturn' should not return}}
// expected-error at +3 {{redefinition of 'main'}}
// expected-warning at +2 {{'main' is not allowed to be declared _Noreturn}}
// expected-note at +1 {{remove '_Noreturn'}}
More information about the cfe-commits
mailing list