OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [uninit_func.adb] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-O -Wall" }
3
 
4
function uninit_func (A, B : Boolean) return Boolean is
5
   C : Boolean; -- { dg-warning "may be used uninitialized" }
6
begin
7
   if A then
8
      C := False;
9
   elsif B then
10
      C := True;
11
   end if;
12
   return C;
13
end;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.