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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [enum13.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
// PR c++/48780
2
// { dg-options "-std=c++0x -fabi-version=5 -Wabi" }
3
 
4
typedef __builtin_va_list __gnuc_va_list;
5
typedef __gnuc_va_list va_list;
6
 
7
enum struct A : short { X };
8
 
9
void foo(int x, ...) {
10
   va_list vl;
11
   __builtin_va_start(vl, x);
12
   enum A t = __builtin_va_arg(vl, enum A); // { dg-warning "promote" }
13
   __builtin_va_end(vl);
14
}
15
 
16
int main() {
17
   foo(0, A::X);                // { dg-warning "will not promote" }
18
}
19
 
20
// { dg-prune-output "note" }

powered by: WebSVN 2.1.0

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