145c35603STeresa Johnson // RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile %s -### 2>&1 | FileCheck %s
2*0949f96dSTeresa Johnson // RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile=foo %s -### 2>&1 | FileCheck %s --check-prefix=DIR
345c35603STeresa Johnson // RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile -fno-memory-profile %s -### 2>&1 | FileCheck %s --check-prefix=OFF
4*0949f96dSTeresa Johnson // RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile=foo -fno-memory-profile %s -### 2>&1 | FileCheck %s --check-prefix=OFF
545c35603STeresa Johnson // CHECK: "-cc1" {{.*}} "-fmemory-profile"
6226d80ebSTeresa Johnson // CHECK: ld{{.*}}libclang_rt.memprof{{.*}}libclang_rt.memprof_cxx
7*0949f96dSTeresa Johnson // DIR: "-cc1" {{.*}} "-fmemory-profile=foo"
8*0949f96dSTeresa Johnson // DIR: ld{{.*}}libclang_rt.memprof{{.*}}libclang_rt.memprof_cxx
945c35603STeresa Johnson // OFF-NOT: "-fmemory-profile"
10226d80ebSTeresa Johnson // OFF-NOT: libclang_rt.memprof
11