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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wparentheses-4.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// Test that -Wparentheses does not give bogus warnings in the
2
// presence of templates for non-plain assignment.  Bug 17120.
3
 
4
// { dg-do compile }
5
// { dg-options "-Wparentheses" }
6
 
7
template
8
  inline _Tp
9
  cmath_power(_Tp __x, unsigned int __n)
10
  {
11
    while (__n >>= 1)
12
      ;
13
    return __x;
14
  }
15
 
16
int main()
17
{
18
  cmath_power(1.0, 3);
19
}

powered by: WebSVN 2.1.0

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