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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tm
/
composite1.C
blob
6e823176128aa58822d60d0dfca7027f8e25a0cd
1
// Test for composite pointer type.
2
// { dg-options -fgnu-tm }
3
4
void f(bool b)
5
{
6
void (*p)() transaction_safe = 0;
7
void (*g)() = 0;
8
9
g = b ? p : g; // OK
10
p = b ? p : g; // { dg-error "" }
11
12
p == g;
13
p != g;
14
}