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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [typeof1.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// Test typeof template argument substitution
2
 
3
// Copyright (C) 2001 Free Software Foundation
4
// Contributed by Kriang Lerdsuwanakij 
5
// { dg-do compile }
6
// { dg-options "" }
7
 
8
template  struct A {
9
        void f() {}
10
        void g(T* t) {
11
                A a;
12
                a.f();
13
        }
14
};
15
 
16
int main()
17
{
18
        A a;
19
        int b;
20
        a.g(&b);
21
}

powered by: WebSVN 2.1.0

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