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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-14.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Test that -Wunused should not emit a warning on the initialization of
2
// non-POD arrays. See PR c++/39803.
3
// { dg-do compile }
4
// { dg-options "-Wunused" }
5
 
6
#include 
7
 
8
using std::pair;
9
 
10
int foo() {
11
  pair components[3]; // { dg-bogus "value computed is not used" }
12
  components[0].first = 0;
13
  return 0;
14
}

powered by: WebSVN 2.1.0

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