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
x86: Disable stack protector for naked functions
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
cond4.C
blob
3bd64763a1835359cfff97cd449517d553fc433d
1
// Origin: PR c++/45383
2
// { dg-do run }
3
4
struct null {
5
null() {}
6
template<class T>
7
operator T*() const {
8
return 0;
9
}
10
11
template<class C, class T>
12
operator T C::*() const {
13
return 0;
14
}
15
private:
16
null(const null&);
17
null& operator=(const null&);
18
void operator&() const;
19
};
20
21
static struct null null;
22
23
int
24
main()
25
{
26
int* ptr = null;
27
if (ptr == null)
28
return 0;
29
if (ptr != null)
30
return 1;
31
}