Skip to content

Commit f81edba

Browse files
Add missing test file
llvm-svn: 351702
1 parent be88539 commit f81edba

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//===- llvm/unittest/CodeGen/TypeTraitsTest.cpp --------------===//
2+
//
3+
// The LLVM Compiler Infrastructure
4+
//
5+
// This file is distributed under the University of Illinois Open Source
6+
// License. See LICENSE.TXT for details.
7+
//
8+
//===----------------------------------------------------------------------===//
9+
10+
#include "llvm/CodeGen/RegisterPressure.h"
11+
#include "llvm/CodeGen/ScheduleDAG.h"
12+
#include "llvm/CodeGen/SelectionDAGNodes.h"
13+
#include "llvm/CodeGen/SlotIndexes.h"
14+
#include "llvm/CodeGen/TargetPassConfig.h"
15+
#include "gtest/gtest.h"
16+
17+
using namespace llvm;
18+
19+
#if __has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5)
20+
static_assert(is_trivially_copyable<PressureChange>::value, "trivially copyable");
21+
static_assert(is_trivially_copyable<SDep>::value, "trivially copyable");
22+
static_assert(is_trivially_copyable<SDValue>::value, "trivially copyable");
23+
static_assert(is_trivially_copyable<SlotIndex>::value, "trivially copyable");
24+
static_assert(is_trivially_copyable<IdentifyingPassPtr>::value, "trivially copyable");
25+
#endif
26+

0 commit comments

Comments
 (0)