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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
cond3.C
blob
e82b686e92ec0d8ff9bfde53ec0aba611b81b372
1
// { dg-do assemble }
2
// Origin: Loring Holden <lsh@lsh.cs.brown.edu>
3
4
template <class T>
5
class REFptr {
6
public:
7
operator T* () const;
8
};
9
10
class CamFocus;
11
typedef REFptr<CamFocus> CamFocusptr;
12
13
class CamFocus {
14
protected:
15
static CamFocusptr _focus;
16
public :
17
static CamFocusptr &cur() { return _focus; }
18
};
19
20
void
21
test()
22
{
23
if (CamFocus::cur()) {
24
}
25
}