[NaCl SDK] nacl_io: Fix bad test added in def60c00.
[chromium-blink-merge.git] / tools / clang / plugins / tests / inline_ctor.h
blob9c6c286c349ca350e7e0ae32b414be9b563121fe
1 // Copyright (c) 2012 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.
5 #ifndef INLINE_CTOR_H_
6 #define INLINE_CTOR_H_
8 #include <string>
9 #include <vector>
11 class InlineCtorsArentOKInHeader {
12 public:
13 InlineCtorsArentOKInHeader() {}
14 ~InlineCtorsArentOKInHeader() {}
16 private:
17 std::vector<int> one_;
18 std::vector<std::string> two_;
21 class DeletedMembersInHeaderAreOKThough {
22 public:
23 DeletedMembersInHeaderAreOKThough() = delete;
24 ~DeletedMembersInHeaderAreOKThough() = delete;
25 DeletedMembersInHeaderAreOKThough(const DeletedMembersInHeaderAreOKThough&) =
26 delete;
28 private:
29 std::vector<int> one_;
30 std::vector<std::string> two_;
33 class ExplicitlyInlinedIsAlsoOK {
34 ExplicitlyInlinedIsAlsoOK();
35 ~ExplicitlyInlinedIsAlsoOK();
36 ExplicitlyInlinedIsAlsoOK(const ExplicitlyInlinedIsAlsoOK&);
38 private:
39 std::vector<int> one_;
40 std::vector<std::string> two_;
43 inline ExplicitlyInlinedIsAlsoOK::ExplicitlyInlinedIsAlsoOK() {
46 inline ExplicitlyInlinedIsAlsoOK::~ExplicitlyInlinedIsAlsoOK() {
49 inline ExplicitlyInlinedIsAlsoOK::ExplicitlyInlinedIsAlsoOK(
50 const ExplicitlyInlinedIsAlsoOK&) {
53 #endif // INLINE_CTOR_H_