Skip to content

Commit 717d501

Browse files
committed
*test_attr
1 parent 0b892fe commit 717d501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/17.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ void conditional_with_init()
382382
*/
383383

384384
// Will warn if return of foo() is ignored
385-
[[nodiscard]] int foo() { return 0; }
385+
[[nodiscard]] int foo() { return 1; }
386386
void test_attr()
387387
{
388388
int a { 1 };
@@ -462,6 +462,7 @@ void lang_17()
462462
folding_demo();
463463
structured_bindings();
464464
conditional_with_init();
465+
test_attr();
465466
types_17();
466467

467468
/// https://en.cppreference.com/w/cpp/language/range-for

0 commit comments

Comments
 (0)