repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/49508
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
crash1.C
blob
078f349ce430dce7edad94b596054355c79fa85d
1
// { dg-do assemble }
2
// Bug: g++ dies on this input.
3
4
class Sample
5
{
6
public:
7
int operator <<(const char *c);
8
};
9
10
extern Sample sample;
11
12
struct Simple
13
{
14
int a;
15
};
16
17
extern "C" void get_it();
18
19
class Test
20
{
21
private:
22
void test();
23
friend void get_it();
24
};
25
26
void Test::test()
27
{
28
sample << "hello";
29
}