aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-addr.C
blob: 11389bfbc285ce67f1ca5247b52cd24416b8b456 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++11 } }

#include <cstddef>

bool operator"" _yn(const char*, size_t);

typedef bool (*pfunk)(const char*, size_t);
pfunk p = &operator"" _yn;

bool tf = p("Hello,\0 World!", 14);