mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D58936 --HG-- extra : moz-landing-system : lando
25 lines
342 B
C++
25 lines
342 B
C++
|
|
void do_something(const char *) {}
|
|
|
|
bool cond(const char *) {
|
|
return false;
|
|
}
|
|
|
|
void test() {
|
|
if (cond("if0") /*comment*/) do_something("same-line");
|
|
}
|
|
|
|
void foo() {
|
|
if (1) while (2) if (3) for (;;) do ; while(false) /**/;/**/
|
|
}
|
|
|
|
void f() {}
|
|
|
|
void foo2() {
|
|
constexpr bool a = true;
|
|
if constexpr (a) {
|
|
f();
|
|
} else {
|
|
f();
|
|
}
|
|
}
|