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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb132.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// { dg-options "-O -Wall  -fgcse" }
3
// From: Klaus-Georg Adams 
4
// Reported against EGCS snaps 98/06/28.
5
//
6
// Compilation of this program with the flags g++ -Wall -O -fgcse
7
// or -O2 produces spurious warnings in the standard
8
// header .
9
//
10
// They vanish if the declaration of a::b is taken out.
11
 
12
#include 
13
 
14
std::string foo();
15
struct a {
16
        void bar();
17
        enum b { c, d };
18
        b theb;
19
        std::string baz;
20
};
21
 
22
void
23
a::bar()
24
{
25
        baz += foo() + foo();
26
        baz += foo() + foo() + "foo";
27
}
28
 

powered by: WebSVN 2.1.0

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