Richard Smith | cd8ab51 | 2013-01-17 01:30:42 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -std=c++11 %s -o - | FileCheck %s |
| 2 | |
| 3 | int g(); |
| 4 | |
Bill Wendling | 3bba3ef | 2013-02-20 19:30:01 +0000 | [diff] [blame] | 5 | // CHECK: _Z1fv(){{.*}} [[NR:#[0-9]+]] |
Richard Smith | cd8ab51 | 2013-01-17 01:30:42 +0000 | [diff] [blame] | 6 | [[noreturn]] int f() { |
| 7 | while (g()) {} |
| 8 | } |
Bill Wendling | f7a9da0 | 2013-02-20 07:22:19 +0000 | [diff] [blame] | 9 | |
Bill Wendling | 3bba3ef | 2013-02-20 19:30:01 +0000 | [diff] [blame] | 10 | // CHECK: attributes [[NR]] = { noreturn nounwind{{.*}} } |