]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/PCH/namespaces.cpp
Update clang to 97654.
[FreeBSD/FreeBSD.git] / test / PCH / namespaces.cpp
1 // Test this without pch.
2 // RUN: %clang_cc1 -x c++ -include %S/Inputs/namespaces.h -fsyntax-only %s
3
4 // Test with pch.
5 // RUN: %clang_cc1 -x c++ -emit-pch -o %t %S/Inputs/namespaces.h
6 // RUN: %clang_cc1 -x c++ -include-pch %t -fsyntax-only %s 
7
8 int int_val;
9 N1::t1 *ip1 = &int_val;
10 N1::t2 *ip2 = &int_val;
11
12 float float_val;
13 namespace N2 { }
14 N2::t1 *fp1 = &float_val;