|
1 |
| -// UNSUPPORTED: default-pie-on-linux |
2 | 1 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-trap=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP
|
3 | 2 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-trap=undefined -fno-sanitize-trap=signed-integer-overflow %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP2
|
4 | 3 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-undefined-trap-on-error %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP
|
|
345 | 344 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=vptr -fno-sanitize=vptr -fsanitize=undefined,address %s -### 2>&1
|
346 | 345 | // OK
|
347 | 346 |
|
348 |
| -// RUN: %clang -target x86_64-linux-gnu -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE |
349 |
| -// RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE |
350 |
| -// RUN: %clang -target x86_64-unknown-freebsd -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE |
351 |
| -// RUN: %clang -target aarch64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE |
352 |
| -// RUN: %clang -target arm-linux-androideabi -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE |
353 |
| -// RUN: %clang -target arm-linux-androideabi24 -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE |
354 |
| -// RUN: %clang -target aarch64-linux-android -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE |
355 |
| -// RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE |
356 |
| -// RUN: %clang -target i386-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE |
357 |
| - |
358 |
| -// CHECK-NO-PIE-NOT: "-pie" |
359 |
| -// CHECK-NO-PIE: "-mrelocation-model" "static" |
360 |
| -// CHECK-NO-PIE-NOT: "-pie" |
361 |
| - |
362 |
| -// CHECK-PIC-NO-PIE-NOT: "-pie" |
363 |
| -// CHECK-PIC-NO-PIE: "-mrelocation-model" "pic" |
364 |
| -// CHECK-PIC-NO-PIE-NOT: "-pie" |
365 |
| - |
366 |
| -// CHECK-PIE: "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" |
367 |
| -// CHECK-PIE: "-pie" |
368 |
| - |
369 | 347 | // RUN: %clang -target arm-linux-androideabi %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ANDROID-NO-ASAN
|
370 | 348 | // CHECK-ANDROID-NO-ASAN: "-mrelocation-model" "pic"
|
371 | 349 |
|
|
0 commit comments