mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 03:55:48 -04:00

DeclContext rather than injecting it wherever we happen to be. This avoids creating functions whose DeclContext is a struct or similar. llvm-svn: 323998
10 lines
196 B
C
10 lines
196 B
C
// RUN: %clang_cc1 %s -verify
|
|
|
|
// PR36157
|
|
struct Foo {
|
|
Foo(int n) : n_(n) {} // expected-error 1+{{}} expected-warning 1+{{}}
|
|
private:
|
|
int n;
|
|
};
|
|
int main() { Foo f; } // expected-error 1+{{}}
|