summaryrefslogtreecommitdiff
path: root/clang/test/PCH/cxx-namespaces.cpp
blob: 0fd3de7f6c884345eabb87daad7309ab43149fb7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
// Test this without pch.
// RUN: %clang_cc1 -include %S/cxx-namespaces.h -fsyntax-only -verify %s

// Test with pch.
// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-namespaces.h
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 

void m() {
  N::x = 0;
}