summaryrefslogtreecommitdiffstats
path: root/test/ASTMerge/function-cpp/test.cpp
blob: 304ce3c634c2b41c1882264b0cc2d2701eee9a7b (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -std=c++1z -emit-pch -o %t.1.ast %S/Inputs/function-1.cpp
// RUN: %clang_cc1 -std=c++1z  -ast-merge %t.1.ast -fsyntax-only %s 2>&1 | FileCheck %s
// XFAIL: *

static_assert(add(1, 2) == 5);

// FIXME: support of templated function overload is still not implemented.
static_assert(add('\1', '\2') == 3);

// CHECK-NOT: static_assert