[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / cxx-as-c.c
bloba5d1a4944c95630727adc8e69d079e900e976200
1 // RUN: %clang_cc1 %s -verify
3 // PR36157
4 struct Foo {
5 Foo(int n) : n_(n) {} // expected-error 1+{{}}
6 private:
7 int n;
8 };
9 int main() { Foo f; } // expected-error 1+{{}}