blob: 5186a450af3f7cb875b41e16b6e62bb9cbb83794 [file] [log] [blame]
Andrew Top0d1858f2019-05-15 22:01:47 -07001// Copyright 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This is a "No Compile Test".
6// http://dev.chromium.org/developers/testing/no-compile-tests
7
8#include "base/strings/string16.h"
9
10#if defined(NCTEST_NO_KOENIG_LOOKUP_FOR_STRING16) // [r"use of undeclared identifier 'ShouldNotBeFound'"]
11
12// base::string16 is declared as a typedef. It should not cause other functions
13// in base to be found via Argument-dependent lookup.
14
15namespace base {
16void ShouldNotBeFound(const base::string16& arg) {}
17}
18
19// Intentionally not in base:: namespace.
20void WontCompile() {
21 base::string16 s;
22 ShouldNotBeFound(s);
23}
24
25#endif