• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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