1 | // RUN: %clang_cc1 -fsyntax-only -Wunused -std=c++1z -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | void f(); |
5 | [[maybe_unused]] void f(); |
6 | |
7 | void f() { |
8 | } |
9 |
1 | // RUN: %clang_cc1 -fsyntax-only -Wunused -std=c++1z -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | void f(); |
5 | [[maybe_unused]] void f(); |
6 | |
7 | void f() { |
8 | } |
9 |