We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ed07b commit 47e7bdbCopy full SHA for 47e7bdb
clang/test/Sema/invalid-member.cpp
@@ -0,0 +1,7 @@
1
+// RUN: %clang_cc1 -verify -fsyntax-only %s
2
+void foo(); // expected-note {{requires 0 arguments}}
3
+class X {
4
+ decltype(foo(42)) invalid; // expected-error {{no matching function}}
5
+};
6
+// Should be able to evaluate sizeof without crashing.
7
+static_assert(sizeof(X) == 1, "No valid members");
0 commit comments