[Analyzer] Clean up test/Analysis/ptr-sort.cpp
authorMandeep Singh Grang <mgrang@quicinc.com>
Wed, 13 Mar 2019 19:21:11 +0000 (19:21 +0000)
committerMandeep Singh Grang <mgrang@quicinc.com>
Wed, 13 Mar 2019 19:21:11 +0000 (19:21 +0000)
llvm-svn: 356088

clang/test/Analysis/ptr-sort.cpp

index 56f0979..a4f9481 100644 (file)
@@ -1,12 +1,13 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.nondeterminism.PointerSorting %s -analyzer-output=text -verify
+// RUN: %clang_analyze_cc1 %s -analyzer-output=text -verify \
+// RUN: -analyzer-checker=core,alpha.nondeterminism.PointerSorting
 
 #include "Inputs/system-header-simulator-cxx.h"
 
-bool f (int x) { return true; }
-bool g (int *x) { return true; }
+bool f(int x) { return true; }
+bool g(int *x) { return true; }
 
 void PointerSorting() {
-  int a = 1, b = 2, c = 3;
+  int a = 1, b = 2;
   std::vector<int> V1 = {a, b};
   std::vector<int *> V2 = {&a, &b};