Dmitri Gribenko | f85b929 | 2014-02-18 15:29:17 +0000 | [diff] [blame^] | 1 | //===- unittests/libclang/LibclangTest.cpp --- libclang 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 | #include "clang-c/Index.h" |
| 11 | #include "gtest/gtest.h" |
| 12 | |
| 13 | TEST(libclang, TestInvalidArgs) { |
| 14 | EXPECT_EQ(CXError_InvalidArguments, |
| 15 | clang_parseTranslationUnit2(0, 0, 0, 0, 0, 0, 0, 0)); |
| 16 | } |
| 17 | |