summaryrefslogtreecommitdiff
path: root/test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp')
-rw-r--r--test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp b/test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp
index c034f22b7..698553d33 100644
--- a/test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp
+++ b/test/std/containers/container.adaptors/priority.queue/priqueue.members/empty.fail.cpp
@@ -1,10 +1,9 @@
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -21,8 +20,10 @@
#include "test_macros.h"
-int main ()
+int main(int, char**)
{
std::priority_queue<int> c;
c.empty(); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}}
+
+ return 0;
}