2023-01-31 15:08:20 +01:00
|
|
|
auto func()
|
|
|
|
|
{
|
|
|
|
|
return R"(foo
|
|
|
|
|
foobar
|
|
|
|
|
R"notaprefix!(
|
|
|
|
|
barfoobar)" R"(second)" /* comment */ R"(third)";
|
|
|
|
|
}
|
2023-01-31 18:02:08 +01:00
|
|
|
|
|
|
|
|
void keywords()
|
|
|
|
|
{
|
|
|
|
|
bool b1 = true;
|
|
|
|
|
bool b2 = false;
|
|
|
|
|
void *p = nullptr;
|
|
|
|
|
}
|
2023-01-31 18:13:42 +01:00
|
|
|
|
|
|
|
|
void numberLiterals()
|
|
|
|
|
{
|
|
|
|
|
auto integer = 1;
|
|
|
|
|
auto numFloat1 = 1.2f;
|
|
|
|
|
auto numFloat2 = 1.2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<int n = 5> class C;
|
2023-01-31 18:26:34 +01:00
|
|
|
|
|
|
|
|
struct ConversionFunction {
|
|
|
|
|
operator int();
|
|
|
|
|
};
|
2023-03-14 09:53:03 +01:00
|
|
|
|
|
|
|
|
template<typename T> concept NoConstraint = true;
|