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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [main-2.C] - Blame information for rev 701

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// Make sure that the type of f1 does not change
3
// after the error of main about not returning
4
// int.
5
// From Pekka Vuorela 
6
// PR c++/23229
7
 
8
void f1();
9
 
10
void
11
main()  /* { dg-error "must return" } */
12
{
13
  f1();
14
}
15
 
16
void f1()
17
{
18
}
19
 

powered by: WebSVN 2.1.0

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