* lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
* lib/target-supports.exp (check_effective_target_c++11): Now
means C++11 and up.
(check_effective_target_c++11_only): New.
(check_effective_target_c++11_down): New.
(check_effective_target_c++1y): New.
(check_effective_target_c++1y_only): New.
(check_effective_target_c++98_only): Rename from
check_effective_target_c++98.
* g++.dg/*: Use { target c++11 } instead of -std=c++11.
From-SVN: r208416
16 lines
502 B
C
16 lines
502 B
C
// { dg-options "-fabi-version=0" }
|
|
// { dg-do compile { target c++11 } }
|
|
template<typename... Args>
|
|
class tuple {};
|
|
|
|
void f_none(tuple<>) {}
|
|
void f_one(tuple<int>) {}
|
|
void f_two(tuple<int, float>) {}
|
|
void f_nested(tuple<int, tuple<double, char>, float>) { }
|
|
|
|
|
|
// { dg-final { scan-assembler "_Z6f_none5tupleIJEE" } }
|
|
// { dg-final { scan-assembler "_Z5f_one5tupleIJiEE" } }
|
|
// { dg-final { scan-assembler "_Z5f_two5tupleIJifEE" } }
|
|
// { dg-final { scan-assembler "_Z8f_nested5tupleIJiS_IJdcEEfEE" } }
|