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:
@@ -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
|
@@ -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"
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
#include "../DefaultOnly.h"
|
||||
#include "DefaultOnly.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
Reference in New Issue
Block a user