YouCompleteMe/cpp/llvm/tools/clang/test/PCH/cxx-namespaces.cpp

11 lines
274 B
C++
Raw Normal View History

// 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;
}