OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [unary1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { 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 
13
void g(void)
14
{
15
  -p;        // { dg-error "wrong type argument" }
16
  +p;
17
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.