xref: /aosp_15_r20/external/clang/test/CXX/drs/dr12xx.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
2 // RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
3 // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
4 // RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
5 
6 // expected-no-diagnostics
7 
8 namespace dr1250 {  // dr1250: 3.9
9 struct Incomplete;
10 
11 struct Base {
12   virtual const Incomplete *meow() = 0;
13 };
14 
15 struct Derived : Base {
16   virtual Incomplete *meow();
17 };
18 } // dr1250
19