projects
/
platform
/
upstream
/
prelink.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
packaging: changed asan macro check for "bad %if condition"
[platform/upstream/prelink.git]
/
testsuite
/
cxx3.C
1
#include "cxx3.h"
2
extern "C" void abort (void);
3
4
void
5
check (A *x, B *y)
6
{
7
C d;
8
if (x->b () != 2)
9
abort ();
10
if (y->B::a () != 3)
11
abort ();
12
if (d.a () != 4)
13
abort ();
14
if (d.C::b () != 5)
15
abort ();
16
}
17
18
int
19
main ()
20
{
21
A x;
22
if (x.a () != 1)
23
abort ();
24
do_check (check, &x);
25
return 0;
26
}