aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx-namespaces.cpp
blob: e0ff27c020c45e7348632f1de5b72e8163df8b23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// 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 

// expected-no-diagnostics

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