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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
mvp2.C
blob
6e1ffb5db12e1b9c23649ff054555b03a42cefb7
1
// PR c++/83592
2
// { dg-do compile }
3
// { dg-options "-Wparentheses" }
4
5
// Test that -Wparentheses does not give bogus warnings in
6
// typename context.
7
8
int *
9
foo (long &a)
10
{
11
return reinterpret_cast<int (*)> (&a);
12
}
13
14
int *
15
bar (long &a)
16
{
17
return (int (*)) &a;
18
}
19
20
int *
21
baz (int &a)
22
{
23
return static_cast<int (*const)> (&a);
24
}