Commit 5d85c0e3 by Eric Botcazou

re PR middle-end/47646 (Revision 169918 caused many testsuite failures)

	PR middle-end/47646
	* gnat.dg/uninit_func.adb: Adjust dg directive.
	* obj-c++.dg/attributes/method-noreturn-1.mm: Adjust dg directives.

From-SVN: r169982
parent df98c3e8
2011-02-09 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/47646
* gnat.dg/uninit_func.adb: Adjust dg directive.
2011-02-09 Dominique Dhumieres <dominiq@lps.ens.fr>
PR middle-end/47646
* obj-c++.dg/attributes/method-noreturn-1.mm: Adjust dg directives.
2011-02-09 Janus Weil <janus@gcc.gnu.org> 2011-02-09 Janus Weil <janus@gcc.gnu.org>
PR fortran/47637 PR fortran/47637
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
-- { dg-options "-O -Wall" } -- { dg-options "-O -Wall" }
function uninit_func (A, B : Boolean) return Boolean is function uninit_func (A, B : Boolean) return Boolean is
C : Boolean; -- { dg-warning "may be used uninitialized" } C : Boolean;
begin begin
if A then if A then
C := False; C := False;
elsif B then elsif B then
C := True; C := True;
end if; end if;
return C; return C; -- { dg-warning "may be used uninitialized" }
end; end;
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
+ (id) method1 + (id) method1
{ {
return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */ return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */
} /* { dg-warning ".noreturn. function does return" } */ } /* { dg-warning ".noreturn. function does return" "" { target *-*-* } 20 } */
- (id) method2 - (id) method2
{ {
return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */ return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */
} /* { dg-warning ".noreturn. function does return" } */ } /* { dg-warning ".noreturn. function does return" "" { target *-*-* } 24 } */
+ (id) method3 + (id) method3
{ {
abort (); abort ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment