repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
expr
/
unary1.C
blob
4ea230f018fadcf129bd606874b825b20ba9ed43
1
// { dg-do compile }
2
// Unary plus (but not unary minus) can be applied to pointer types
3
4
void *p;
5
6
void f(void)
7
{
8
-p; // { dg-error "wrong type argument" }
9
+p;
10
}
11
12
template <int>
13
void g(void)
14
{
15
-p; // { dg-error "wrong type argument" }
16
+p;
17
}