• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang -fsanitize=bounds -### -fsyntax-only %s 2> %t
2 // RUN: FileCheck -check-prefix=CHECK < %t %s
3 // CHECK: "-fsanitize=bounds"
4 
5 // RUN: %clang -fbounds-checking -### -fsyntax-only %s 2> %t
6 // RUN: FileCheck -check-prefix=CHECK-OLD < %t %s
7 // CHECK-OLD: "-fsanitize=bounds"
8 
9 // RUN: %clang -fbounds-checking=3 -### -fsyntax-only %s 2> %t
10 // RUN: FileCheck -check-prefix=CHECK-OLD2 < %t %s
11 // CHECK-OLD2: "-fsanitize=bounds"
12