* 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:
Andrea Azzarone 2015-02-19 13:45:25 +00:00 committed by Jakub Jelinek
parent 49d8897995
commit 97953c118b
2 changed files with 9 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}