Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaCXX/builtins.cpp @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
comparison
equal
deleted
inserted
replaced
172:9fbae9c8bf63 | 173:0572611fdcc8 |
---|---|
12 // <rdar://problem/10063539> | 12 // <rdar://problem/10063539> |
13 template<int (*Compare)(const char *s1, const char *s2)> | 13 template<int (*Compare)(const char *s1, const char *s2)> |
14 int equal(const char *s1, const char *s2) { | 14 int equal(const char *s1, const char *s2) { |
15 return Compare(s1, s2) == 0; | 15 return Compare(s1, s2) == 0; |
16 } | 16 } |
17 // FIXME: Our error recovery here sucks | 17 template int equal<&__builtin_strcmp>(const char*, const char*); // expected-error {{builtin functions must be directly called}} |
18 template int equal<&__builtin_strcmp>(const char*, const char*); // expected-error {{builtin functions must be directly called}} expected-error {{expected unqualified-id}} expected-error {{expected ')'}} expected-note {{to match this '('}} | |
19 | 18 |
20 // PR13195 | 19 // PR13195 |
21 void f2() { | 20 void f2() { |
22 __builtin_isnan; // expected-error {{builtin functions must be directly called}} | 21 __builtin_isnan; // expected-error {{builtin functions must be directly called}} |
23 } | 22 } |