-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '8959c3cf987f94f8514d30fc82923c662088cad3' into attach_a…
…nnotation_to_get
- Loading branch information
Showing
121 changed files
with
1,766 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
// With default options, ensure that declarations obtained by a using declaration have | ||
// debug info generated. sin() is declared through cmath with: using ::sin; | ||
// | ||
// Also ensure that no debug info for sin() is generated if -fno-system-debug is used. | ||
|
||
// Debug info for math library functions is not generated on Windows | ||
// UNSUPPORTED: system-windows | ||
|
||
// RUN: %clang -emit-llvm -S -g %s -o %t.default.ll | ||
// RUN: %clang -fno-system-debug -emit-llvm -S -g %s -o %t.no_system_debug.ll | ||
|
||
// Check for debug info for "sin" with default option | ||
// RUN: FileCheck --check-prefix=CHECK-DEFAULT %s < %t.default.ll | ||
|
||
// No debug information for "sin" should be generated with -fno-system-debug | ||
// RUN: FileCheck --check-prefix=CHECK-NO-SYSTEM-DEBUG %s < %t.no_system_debug.ll | ||
|
||
// CHECK-DEFAULT: DISubprogram(name: "sin", | ||
// CHECK-NO-SYSTEM-DEBUG-NOT: DISubprogram(name: "sin", | ||
|
||
//////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#include <math.h> | ||
|
||
int main() { | ||
float f; | ||
|
||
f=sin(1.32); | ||
return 0; | ||
} |
Oops, something went wrong.