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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
dwarf2
/
dwarf4-typedef.C
blob
a514472b397f2522767dc4b68db485e39639738b
1
/* { dg-do compile } */
2
/* { dg-options "-gdwarf-4 -fdebug-types-section" } */
3
4
/* Regression test for an ICE in output_die when using -gdwarf-4. */
5
6
namespace {
7
8
struct A {
9
virtual ~A(); // { dg-warning "used but never defined" }
10
};
11
12
struct B : public A {
13
template <typename A>
14
bool foo(A x[2]) { return true; }
15
};
16
17
template <typename T>
18
struct C {
19
T v[2];
20
};
21
22
template <typename T>
23
bool X(T &b) {
24
typedef C<int> D;
25
D x[2];
26
return b.foo(x);
27
}
28
29
void f() {
30
B b;
31
X<B>(b);
32
}
33
34
}