2012-11-23 18:39:49 +08:00
|
|
|
// RUN: %clang -fsanitize=bounds -### -fsyntax-only %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK < %t %s
|
2013-10-23 06:51:04 +08:00
|
|
|
// CHECK: "-fsanitize=array-bounds,local-bounds"
|
2012-05-09 06:10:46 +08:00
|
|
|
|
2012-11-23 18:39:49 +08:00
|
|
|
// RUN: %clang -fbounds-checking -### -fsyntax-only %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-OLD < %t %s
|
2013-10-23 06:51:04 +08:00
|
|
|
// CHECK-OLD: "-fsanitize=local-bounds"
|
2012-11-23 18:39:49 +08:00
|
|
|
|
|
|
|
// RUN: %clang -fbounds-checking=3 -### -fsyntax-only %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-OLD2 < %t %s
|
2013-10-23 06:51:04 +08:00
|
|
|
// CHECK-OLD2: "-fsanitize=local-bounds"
|