Skip to content
Snippets Groups Projects
Commit 0b94e9cc authored by Marek Polacek's avatar Marek Polacek
Browse files

testsuite: nodiscard-reason-nonstring.C FAIL in C++26

Since r14-5071, we emit an extra error for this test (the first one):

nodiscard-reason-nonstring.C:5:13: error: expected string-literal before numeric constant
nodiscard-reason-nonstring.C:5:36: error: 'nodiscard' attribute argument must be a string constant

so the test needs adjusting.

gcc/testsuite/ChangeLog:

	* g++.dg/cpp2a/nodiscard-reason-nonstring.C: Adjust dg-error.
parent a49c7d31
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment