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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-14.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 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.