From 1fdead5958dfdea388245c627702088f3d68de62 Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Mon, 22 Feb 2016 05:39:30 -0800 Subject: [PATCH] Fix symbolic links in cpp tests after formatting diff (part 1) Summary:public Running clang-format on symbolic link replaced it with another file. This is first diff out of two to fix that problem. Reviewed By: jvillard Differential Revision: D2960204 fb-gh-sync-id: aaa3231 shipit-source-id: aaa3231 --- .../nestedoperators/assign_in_condition.cpp | 15 -------- .../c/frontend/nestedoperators/union.cpp | 38 ------------------- 2 files changed, 53 deletions(-) delete mode 100644 infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_in_condition.cpp delete mode 100644 infer/tests/codetoanalyze/c/frontend/nestedoperators/union.cpp diff --git a/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_in_condition.cpp b/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_in_condition.cpp deleted file mode 100644 index 2242943e5..000000000 --- a/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_in_condition.cpp +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) 2013 - present Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -int foo(int* p) { - if ((*p = 0)) { - return 32; - } - return 52; -} diff --git a/infer/tests/codetoanalyze/c/frontend/nestedoperators/union.cpp b/infer/tests/codetoanalyze/c/frontend/nestedoperators/union.cpp deleted file mode 100644 index 496d8383f..000000000 --- a/infer/tests/codetoanalyze/c/frontend/nestedoperators/union.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2013 - present Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -#include - -struct { - int a; - int b; -} * x; - -union { - int e; - int f; - - struct { - int w; - int u; - } g; - - int h; -} y; - -int main() { - int l; - - x->a = 1; - y.f = 7; - y.g.u = y.f; - - y.g.w = x->b; - return 0; -}