aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/warn-inline-namespace-reopened-twice.cpp
blob: ac22280fdf8009e1efeee1b7685da79bd8ec614e (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -Wall -verify -std=c++11 %s

// Regression test for #50794.

// expected-note@+1 2 {{previous definition is here}}
inline namespace X {}

namespace X {} // expected-warning {{inline namespace reopened as a non-inline namespace}}
namespace X {} // expected-warning {{inline namespace reopened as a non-inline namespace}}