llvm-project/clang/test/Sema/cxx-as-c.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
196 B
C
Raw Normal View History

// 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+{{}}