// { dg-do compile { target c++11 } } // { dg-options "--embed-dir=${srcdir}/c-c++-common/cpp/embed-dir" } template constexpr decltype (sizeof 0) foo () { return sizeof... (N); } template struct same_type; template struct same_type {}; void bar () { } template same_type * bar (U u, T... t) { bar (t...); return nullptr; } static_assert ( #embed limit (1) prefix (foo <) suffix (> () == 1, "") ); static_assert ( #embed limit (2) prefix (foo <) suffix (> () == 2, "") ); static_assert ( #embed limit (42) prefix (foo <) suffix (> () == 42, "") ); static_assert ( #embed limit (521) prefix (foo <) suffix (> () == 521, "") ); void baz () { bar ( #embed "magna-carta.txt" limit (54) ); }