1*70f63892SLouis Dionne //===----------------------------------------------------------------------===// 2*70f63892SLouis Dionne // 3*70f63892SLouis Dionne // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*70f63892SLouis Dionne // See https://llvm.org/LICENSE.txt for license information. 5*70f63892SLouis Dionne // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*70f63892SLouis Dionne // 7*70f63892SLouis Dionne //===----------------------------------------------------------------------===// 8*70f63892SLouis Dionne 9*70f63892SLouis Dionne // Make sure the test passes if the expected diagnostic is correct. 10*70f63892SLouis Dionne 11*70f63892SLouis Dionne struct Foo { }; 12*70f63892SLouis Dionne typedef Foo::x x; // expected-error{{no type named 'x' in 'Foo'}} 13