mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
527 B
Swift
13 lines
527 B
Swift
// RUN: %target-swift-frontend -emit-assembly %s | %FileCheck %s --check-prefix=VERBOSE
|
|
// RUN: %target-swift-frontend -emit-assembly -verbose-asm %s | %FileCheck %s --check-prefix=VERBOSE
|
|
// RUN: %target-swift-frontend -emit-assembly -no-verbose-asm %s | %FileCheck %s --check-prefix=NO-VERBOSE
|
|
|
|
// Test that verbose assembly is enabled by default and can be disabled
|
|
|
|
func simpleFunction() -> Int {
|
|
return 42
|
|
}
|
|
|
|
// VERBOSE: {{;|#|//|@}} -- {{Begin|End}} function
|
|
// NO-VERBOSE-NOT: {{;|#|//|@}} -- {{Begin|End}} function
|