Found two identical files named 'DefaultOnly.h' in the libcxx test suite. Moved one to /support, removed the other, and iupdated all the includes. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@196118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-12-02 17:00:56 +00:00
parent 6daf534441
commit e27dbcf2dc
25 changed files with 23 additions and 49 deletions

View File

@@ -1,26 +0,0 @@
#ifndef DEFAULTONLY_H
#define DEFAULTONLY_H
#include <cassert>
class DefaultOnly
{
int data_;
DefaultOnly(const DefaultOnly&);
DefaultOnly& operator=(const DefaultOnly&);
public:
static int count;
DefaultOnly() : data_(-1) {++count;}
~DefaultOnly() {data_ = 0; --count;}
friend bool operator==(const DefaultOnly& x, const DefaultOnly& y)
{return x.data_ == y.data_;}
friend bool operator< (const DefaultOnly& x, const DefaultOnly& y)
{return x.data_ < y.data_;}
};
int DefaultOnly::count = 0;
#endif // DEFAULTONLY_H

View File

@@ -17,7 +17,7 @@
#include <tuple>
#include <cassert>
#include "../DefaultOnly.h"
#include "DefaultOnly.h"
#include "../allocators.h"
#include "../alloc_first.h"
#include "../alloc_last.h"

View File

@@ -17,7 +17,7 @@
#include <string>
#include <cassert>
#include "../DefaultOnly.h"
#include "DefaultOnly.h"
int main()
{