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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/48457, Core 1238
2
// { dg-options -std=c++0x }
3
 
4
template
5
T&& create();
6
 
7
template
8
void test() {
9
  T t(create());
10
  (void) t;
11
}
12
 
13
void f (void (&)());
14
void f (void (&&)());
15
 
16
int main() {
17
  test();
18
  test();
19
  // This call should choose the lvalue reference overload.
20
  // { dg-final { scan-assembler-not "_Z1fOFvvE" } }
21
  f(create());
22
}

powered by: WebSVN 2.1.0

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