Commit 97953c11 by Andrea Azzarone Committed by Jakub Jelinek

* 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
parent 49d88979
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> 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
* gcc.dg/pr64935-1.c, gcc.dg/pr64935-2.c: New tests. * gcc.dg/pr64935-1.c, gcc.dg/pr64935-2.c: New tests.
......
...@@ -2,12 +2,14 @@ ...@@ -2,12 +2,14 @@
#include <cassert> #include <cassert>
typedef decltype(sizeof(0)) size_type;
template<typename CharT, CharT... String> template<typename CharT, CharT... String>
int operator"" _script () { int operator"" _script () {
return 1; return 1;
} }
int operator"" _script (const char*, unsigned long) { int operator"" _script (const char*, size_type) {
return 2; return 2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment