* g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
(size_type): New typedef. (operator "" _script): Use it for the last argument. From-SVN: r220814
This commit is contained in:
parent
49d8897995
commit
97953c118b
|
@ -1,3 +1,9 @@
|
|||
2015-02-19 Andrea Azzarone <azzaronea@gmail.com>
|
||||
|
||||
* g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
|
||||
(size_type): New typedef.
|
||||
(operator "" _script): Use it for the last argument.
|
||||
|
||||
2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
|
||||
|
||||
* gcc.dg/pr64935-1.c, gcc.dg/pr64935-2.c: New tests.
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
#include <cassert>
|
||||
|
||||
typedef decltype(sizeof(0)) size_type;
|
||||
|
||||
template<typename CharT, CharT... String>
|
||||
int operator"" _script () {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int operator"" _script (const char*, unsigned long) {
|
||||
int operator"" _script (const char*, size_type) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue