]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add fixed testcase [PR109997]
authorJason Merrill <jason@redhat.com>
Wed, 24 Jul 2024 15:07:42 +0000 (11:07 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 24 Jul 2024 15:09:59 +0000 (11:09 -0400)
Fixed by r14-9713 for PR100667.

PR c++/109997

gcc/testsuite/ChangeLog:

* g++.dg/ext/is_assignable1.C: New test.

gcc/testsuite/g++.dg/ext/is_assignable1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/is_assignable1.C b/gcc/testsuite/g++.dg/ext/is_assignable1.C
new file mode 100644 (file)
index 0000000..31e6450
--- /dev/null
@@ -0,0 +1,4 @@
+// PR c++/109997
+
+struct S;
+bool b = __is_assignable(int, S); // { dg-error "incomplete" }