[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / clang / test / Analysis / cstring-ranges.c
blob27f90cc888bde11364b4d3d91d09e9bf15fd3bb4
1 // RUN: %clang_analyze_cc1 -analyzer-checker=unix.cstring -analyzer-output=text %s 2>&1 | FileCheck %s
3 // This test verifies argument source range highlighting.
4 // Otherwise we've no idea which of the arguments is null.
5 // These days we actually also have it in the message,
6 // but the range is still great to have.
8 char *strcpy(char *, const char *);
10 void foo(void) {
11 char *a = 0, *b = 0;
12 strcpy(a, b);
15 // CHECK: warning: Null pointer passed as 1st argument to string copy function
16 // CHECK-NEXT: strcpy(a, b);
17 // CHECK-NEXT: ^ ~