diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-07-17 01:39:25 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-07-17 01:39:25 +0000 |
| commit | fec4c1a101996f203388d19160cc279b1bc5618f (patch) | |
| tree | 3b74cdae6e4eddcdeb6561119f60b6f7762f78fe | |
| parent | c992cc4e972ee4a3724721a5ee2fa51410e52e91 (diff) | |
| download | bcm5719-llvm-fec4c1a101996f203388d19160cc279b1bc5618f.tar.gz bcm5719-llvm-fec4c1a101996f203388d19160cc279b1bc5618f.zip | |
[analyzer] Fix size_t in tests.
Should fix a buildbot. No functional change intended.
llvm-svn: 337231
| -rw-r--r-- | clang/test/Analysis/pr37802.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Analysis/pr37802.cpp b/clang/test/Analysis/pr37802.cpp index 647e389362c..9acfebaae86 100644 --- a/clang/test/Analysis/pr37802.cpp +++ b/clang/test/Analysis/pr37802.cpp @@ -2,7 +2,8 @@ // expected-no-diagnostics -void *operator new(unsigned long, void *h) { return h; } +typedef __typeof(sizeof(int)) size_t; +void *operator new(size_t, void *h) { return h; } // I've no idea what this code does, but it used to crash, so let's keep it. namespace pr37802_v1 { |

