Richard Smith | 081cbe9 | 2018-02-01 20:01:49 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -verify |
2 | |||||
3 | // PR36157 | ||||
4 | struct Foo { | ||||
5 | Foo(int n) : n_(n) {} // expected-error 1+{{}} expected-warning 1+{{}} | ||||
6 | private: | ||||
7 | int n; | ||||
8 | }; | ||||
9 | int main() { Foo f; } // expected-error 1+{{}} |