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
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
local3.C
blob
6c0fe4573e05ef6749eb9e6cad02ee3dcf61a185
1
// { dg-do run }
2
extern "C" void abort();
3
4
template <class T>
5
void f(T)
6
{
7
int j;
8
9
j = 6;
10
11
struct S {
12
int i;
13
};
14
15
S s;
16
17
s.i = j;
18
19
if (s.i != 6)
20
abort();
21
}
22
23
24
int main()
25
{
26
f(7);
27
}