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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/16630
2
// { dg-do compile }
3
// { dg-options "" }
4
extern "C" int printf (const char*, ...);
5
 
6
template 
7
struct B { typedef T X; };
8
 
9
template 
10
struct D
11
{
12
  const char* foo (typename B::X) { return __PRETTY_FUNCTION__; }
13
};
14
 
15
int main ()
16
{
17
  printf ("%s\n", D().foo (0));
18
}
19
// { dg-final { scan-assembler "const char\\* D::foo\\(typename B::X\\)" } }

powered by: WebSVN 2.1.0

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