David Blaikie | a995630 | 2013-07-13 18:08:59 +0000 | [diff] [blame^] | 1 | //===- unittests/AST/DeclTest.cpp --- Declaration tests -------------------===// |
| 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 | // Unit tests for the ASTVector container. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "llvm/Support/Compiler.h" |
| 15 | #include "clang/AST/ASTVector.h" |
| 16 | #include "clang/Basic/TargetInfo.h" |
| 17 | #include "clang/Frontend/CompilerInstance.h" |
| 18 | #include "gtest/gtest.h" |
| 19 | |
| 20 | using namespace clang; |
| 21 | |
| 22 | LLVM_ATTRIBUTE_UNUSED void CompileTest() { |
| 23 | ASTContext *C = 0; |
| 24 | ASTVector<int> V; |
| 25 | V.insert(*C, V.begin(), 0); |
| 26 | } |