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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [initlist42.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
// { dg-options -std=c++0x }
2
 
3
enum Unscoped { };
4
enum class Scoped { };
5
 
6
Unscoped bar(Unscoped x) { return x; }
7
Scoped bar(Scoped x) { return x; }
8
 
9
auto var1u = bar(Unscoped()); // OK
10
auto var1s = bar(Scoped()); // OK
11
 
12
auto var2u = bar(Unscoped{}); // #1 Error, but should work
13
auto var2s = bar(Scoped{}); // #2 Error, but should work

powered by: WebSVN 2.1.0

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