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 4b098e6 commit 7a111a6Copy full SHA for 7a111a6
clang/test/SemaCXX/nested-name-spec.cpp
@@ -1,3 +1,10 @@
1
+// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2
+
3
+struct incomplete;
4
+incomplete::type var; // expected-error{{incomplete type 'incomplete' named in nested name specifier}}
5
+// expected-note@-2{{forward declaration of 'incomplete'}}
6
7
8
// RUN: %clang_cc1 -fsyntax-only -std=c++98 -verify -fblocks %s
9
namespace A {
10
struct C {
0 commit comments