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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [component1.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 28 Dec 2001 
5
 
6
// PR 5123. ICE
7
 
8
struct C {
9
  template void f(T);
10
  void g ();
11
  void g (int);
12
};
13
 
14
void Foo () {
15
  C c;
16
 
17
  (c.g) ();
18
  (c.f) (1);
19
 
20
  (c.f) (2);
21
 
22
  c.g;                  // { dg-error "statement cannot resolve" "" }
23
  c.f;                  // { dg-error "statement cannot resolve" "" }
24
  c.f;          // { dg-error "statement cannot resolve" "" }
25
 
26
  c.g == 1;             // { dg-error "invalid" "" }
27
  c.f == 1;             // { dg-error "invalid" "" }
28
  c.f == 1;     // { dg-error "invalid" "" }
29
}

powered by: WebSVN 2.1.0

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