[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / clang / test / SemaCXX / complete-member-pointers.cpp
blob942bb703a9223651a9be8dcdb474afd148aa84ca
1 // RUN: %clang_cc1 -verify -fsyntax-only -fcomplete-member-pointers %s
3 struct S; // expected-note {{forward declaration of 'S'}}
4 typedef int S::*t;
5 t foo; // expected-error {{member pointer has incomplete base type 'S'}}
7 struct S2 {
8 int S2::*foo;
9 };
10 int S2::*bar;
12 template <typename T>
13 struct S3 {
14 int T::*foo;