diff options
Diffstat (limited to 'libcxx/test/std/containers/sequences/array/empty.fail.cpp')
-rw-r--r-- | libcxx/test/std/containers/sequences/array/empty.fail.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/containers/sequences/array/empty.fail.cpp b/libcxx/test/std/containers/sequences/array/empty.fail.cpp index 424f715413d..3bbb3c8e1c0 100644 --- a/libcxx/test/std/containers/sequences/array/empty.fail.cpp +++ b/libcxx/test/std/containers/sequences/array/empty.fail.cpp @@ -20,11 +20,13 @@ #include "test_macros.h" -int main () +int main(int, char**) { std::array<int, 1> c; c.empty(); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}} std::array<int, 0> c0; c0.empty(); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}} + + return 0; } |