blob: 4ea230f018fadcf129bd606874b825b20ba9ed43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// { dg-do compile }
// Unary plus (but not unary minus) can be applied to pointer types
void *p;
void f(void)
{
-p; // { dg-error "wrong type argument" }
+p;
}
template <int>
void g(void)
{
-p; // { dg-error "wrong type argument" }
+p;
}
|