Richard Pennington | 33efe2f | 2010-02-23 12:22:13 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -W -Wall -Werror -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Richard Pennington | 33efe2f | 2010-02-23 12:22:13 +0000 | [diff] [blame] | 3 | |
4 | int f(int i __attribute__((__unused__))) | ||||
5 | { | ||||
6 | return 0; | ||||
7 | } | ||||
8 | int g(i) | ||||
9 | int i __attribute__((__unused__)); | ||||
10 | { | ||||
11 | return 0; | ||||
12 | } |